afx_msg BOOL OnNcActivate( BOOL bActive );
bActive
Specifies when a caption bar or icon needs to be changed to indicate an active or inactive state. The bActive parameter is TRUE if an active caption or icon is to be drawn. It is FALSE for an inactive caption or icon.
Called when the nonclient area needs to be changed to indicate an active or inactive state.
The Default member function draws the appropriate caption bar.
This message-handler member function calls the Default member function. Override this member function in your derived class to handle the WM_NCACTIVATE message.
TRUE if activation should proceed; FALSE if activation should be aborted.
CWnd::Default, WM_NCACTIVATE