The WM_ENABLE message is sent when an application changes the enabled state of a window. It is sent to the window whose enabled state is changing. This message is sent before the EnableWindow function returns, but after the enabled state (WS_DISABLED style bit) of the window has changed.
WM_ENABLE fEnabled = (BOOL) wParam; // enabled/disabled flag
If an application processes this message, it should return zero.