Home > Software engineering >  MFC in the mouse to drag the maximization becomes Normal call which message?
MFC in the mouse to drag the maximization becomes Normal call which message?

Time:09-21

Watched the debugging, in the OnSize calls, but the call to the message don't know is which, poor judgment,

CodePudding user response:

Position size display changes tend to have WM_WINDOWPOSCHANGING WM_WINDOWPOSCHANGED messages

CodePudding user response:

WM_MOVE

CodePudding user response:

Ok thank you

refer to the second floor schlafenhamster response:
WM_MOVE

CodePudding user response:

reference 1st floor zgl7903 response:
position size display changes tend to have WM_WINDOWPOSCHANGING WM_WINDOWPOSCHANGED messages

Good thank you

CodePudding user response:

 afx_msg void OnSize (
UINT nType,
Cx, int
Int cy
);


The Collapse imageParameters
NType
Specifies the type of resizing requested. This parameter can be one of the following values:

SIZE_MAXIMIZED Window has had maximized.

SIZE_MINIMIZED Window has had been minimized.

SIZE_RESTORED Window has had been resized, but neither SIZE_MINIMIZED nor SIZE_MAXIMIZED applies.

SIZE_MAXHIDE Message is sent to all the pop - up Windows when some other window is maximized.

SIZE_MAXSHOW Message is sent to all the pop - up Windows when some other window has had been restored to their weight.this its size.

Cx
Specifies the new width of the client area.

Cy
Specifies the new height of the client area.
  • Related