CWnd::OnSize

Syntax

afx_msg void OnSize( UINT nType, int cx, int cy );

Parameters

nType

Specifies the type of resizing requested. This parameter can be one of the following values:

Value Description

SIZEFULLSCREEN Window has been maximized.
SIZEICONIC Window has been minimized.
SIZENORMAL Window has been resized, but neither SIZEICONIC nor SIZEFULLSCREEN applies.
SIZEZOOMHIDE Message is sent to all pop-up windows when some other window is maximized.
SIZEZOOMSHOW Message is sent to all pop-up windows when some other window has been restored to its former size.

cx

Specifies the new width of the client area.

cy

Specifies the new height of the client area.

Remarks

Called after the size has changed.

If the SetScrollPos or MoveWindow member function is called for a child window from OnSize, the bRedraw parameter should be nonzero to cause the CWnd to be repainted.

This message-handler member function calls the Default member function. Override this member function in your derived class to handle the WM_SIZE message.

See Also

CWnd::MoveWindow, CWnd::SetScrollPos, CWnd::Default, WM_SIZE