bool DoEraseBackground(WXHDC hDC);
// generate WM_UPDATEUISTATE if it's needed for the OS we're running under
- void MSWUpdateUIState();
+ //
+ // the parameter should be one of UIS_XXX constants
+ void MSWUpdateUIState(int action);
private:
// common part of all ctors
// focus rectangles) work under Win2k+
if ( ret )
{
- MSWUpdateUIState();
+ MSWUpdateUIState(UIS_INITIALIZE);
}
// Note: if we include PocketPC in this test, dialogs can fail to show up,
}
}
-void wxWindowMSW::MSWUpdateUIState()
+void wxWindowMSW::MSWUpdateUIState(int action)
{
// WM_UPDATEUISTATE only appeared in Windows 2000 so it can do us no good
// to use it on older systems -- and could possibly do some harm
// include just one UISF_XXX or both, both are affected, no idea
// why
::SendMessage(GetHwnd(), WM_UPDATEUISTATE,
- MAKEWPARAM(UIS_INITIALIZE,
- UISF_HIDEFOCUS | UISF_HIDEACCEL), 0);
+ MAKEWPARAM(action, UISF_HIDEFOCUS | UISF_HIDEACCEL), 0);
}
}
// this by default, we need to manually send this message
// so that controls could change their appearance
// appropriately
- MSWUpdateUIState();
+ MSWUpdateUIState(UIS_CLEAR);
return true;
}