WM_SIZE Question
-
Anybody knows how to mannually send the WM_SIZE message to a window given the handle of that window. In other words, what is the params for SendMessage(WM_SIZE, ...,...)?
LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_SIZE
WPARAM wParam, // resizing flag
LPARAM lParam // client area
);wParam Specifies the type of resizing requested. This parameter can be one of the following values. SIZE_MAXHIDE Message is sent to all pop-up windows when some other window is maximized. SIZE_MAXIMIZED The window has been maximized. SIZE_MAXSHOW Message is sent to all pop-up windows when some other window has been restored to its former size. SIZE_MINIMIZED The window has been minimized. SIZE_RESTORED The window has been resized, but neither the SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies. lParam The low-order word of lParam specifies the new width of the client area. The high-order word of lParam specifies the new height of the client area. You can use the
LOWORD
,HIWORD
,MAKELPARAM
, orMAKEWPARAM
macros to assemble thewParam
andlParam
paramters. Jeremy L. Falcon "You do not know the power of the dumb side." Homepage : Sonork = 100.16311
Maybe my mangling might misguide malicious miscreants momentarily? -
Anybody knows how to mannually send the WM_SIZE message to a window given the handle of that window. In other words, what is the params for SendMessage(WM_SIZE, ...,...)?
If you are interested, you can simply call SetWindowPos or MoveWindow to change the size of the window as well, and windows will take care of the message sending for you.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!