GXDiscardNcActivate
BOOL GXDiscardNcActivate();
Return Value
TRUE if WM_NCACTIVATE message should be discarded; FALSE if default handler for WM_NCACTIVATE message can be called.
Remarks
You should override OnNcActivate in your mainframe or parent dialog class and check the return value of this function. If it is TRUE, don’t call the default handler for OnNcActivate.
This avoids flashing of the titlebar when a CGXComboBox or CGXTabbedComboBox is dropped down.
Example:
BOOL CGridMDIFrameWnd::OnNcActivate(BOOL bActive)
{
if (GXDiscardNcActivate())
return TRUE;
return CMDIFrameWnd::OnNcActivate(bActive);
}