WM_SIZING message

Sent to a window that the user is resizing. By processing this message, an application can monitor the size and position of the drag rectangle and, if needed, change its size or position.

A window receives this message through its WindowProc function.

#define WM_SIZING                       0x0214

Parameters

wParam

The edge of the window that is being sized. This parameter can be one of the following values.

Value Meaning
WMSZ_BOTTOM
6
Bottom edge
WMSZ_BOTTOMLEFT
7
Bottom-left corner
WMSZ_BOTTOMRIGHT
8
Bottom-right corner
WMSZ_LEFT
1
Left edge
WMSZ_RIGHT
2
Right edge
WMSZ_TOP
3
Top edge
WMSZ_TOPLEFT
4
Top-left corner
WMSZ_TOPRIGHT
5
Top-right corner

 

lParam

A pointer to a RECT structure with the screen coordinates of the drag rectangle. To change the size or position of the drag rectangle, an application must change the members of this structure.

Return value

Type: LRESULT

An application should return TRUE if it processes this message.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

WM_MOVING

WM_SIZE

Conceptual

Windows

Other Resources

RECT