WM_NCACTIVATE
By handling this message we can make an active window's frame appear to be inactive and vice versa.
MSDN (May 2011) suggests handling the message by returning true or false. For example:
case WM_NACTIVATE:
if ( FALSE == wParam )
return TRUE;
Each of the red words can be TRUE or FALSE. Here are the effects of the four possible combinations (tested on Vista): |