Objective Grid: Title bar flashing

Article ID: 121
Last updated: 04 Jun, 2018
Article ID: 121
Last updated: 04 Jun, 2018
Revision: 3
Views: 2034
Posted: 19 Jan, 2001
by Meltreger B.
Updated: 04 Jun, 2018
by Meltreger B.

Problem


How can I avoid the title bar flashing when a CGXComboBox is dropped down?


Cause



Action


You need to process the WM_NCACTIVATE method in your CDialog class.

BOOL CSample1Dialog::OnNcActivate(BOOL bActive)
{
if (GXDiscardNcActivate())
return TRUE;
return CDialog::OnNcActivate(bActive);
}

If you have embedded the grid in a property sheet, you should process the WM_NCACTIVATE method of your CPropertySheet class and not the CPropertyPage.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 121
Last updated: 04 Jun, 2018
Revision: 3
Views: 2034
Posted: 19 Jan, 2001 by Meltreger B.
Updated: 04 Jun, 2018 by Meltreger B.

Others in this category