From: Jimbo on
Hello

What is the message sent to the WNDPROC when the window is minimised?

The reason I want to know is because I need to set a bool variable
redrawControl = true when it happens.

Also when I open a minimised window, is the WM_PAINT message sent?
From: Friedel Jantzen on
Am Fri, 14 May 2010 19:57:14 -0700 (PDT) schrieb Jimbo:

> Hello
>
> What is the message sent to the WNDPROC when the window is minimised?

WM_SIZE with wParam == SIZE_MINIMIZED

> The reason I want to know is because I need to set a bool variable
> redrawControl = true when it happens.
>
> Also when I open a minimised window, is the WM_PAINT message sent?

Yes, and
WM_SIZE with wParam == SIZE_RESTORED or SIZE_MAXIMIZED

A message spy (Spy++, WinSight) is a great tool for investigating this.
Without this tool you could use OutputDebugString to display the message
value and wParam, lParam in a debugger window.

Regards,
Friedel