WM_SIZING isn't working for me. For some reason i don't recive it while
the window is being resized. I recive it after the drag is released, just like WM_SIZE.
I really have no idea, why this is happening.

I need to use this in order to limit how much can a user resize my window,
other solutions would be welcome too.

Quote Originally Posted by MSDN
The WM_SIZING message is 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.


WM_SIZING

WPARAM wParam
LPARAM lParam;
wParam
Specifies which edge of the window is being sized. This parameter can be one of the following values.
WMSZ_BOTTOM - Bottom edge
WMSZ_BOTTOMLEFT - Bottom-left corner
WMSZ_BOTTOMRIGHT - Bottom-right corner
WMSZ_LEFT - Left edge
WMSZ_RIGHT - Right edge
WMSZ_TOP - Top edge
WMSZ_TOPLEFT - Top-left corner
WMSZ_TOPRIGHT - Top-right corner
lParam
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.