Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


Called to retrieve the user interface (UI) state for a window.

afx_msg UINT OnQueryUIState( );

The return value is NULL if the focus indicators and the keyboard accelerators are visible. Otherwise, the return value can be one or more of the following values:

  • UISF_HIDEFOCUS   Focus indicators are hidden.

  • UISF_HIDEACCEL   Keyboard accelerators are hidden.

  • UISF_ACTIVE   Windows XP: A control should be drawn in the style used for active controls.

This member function emulates the functionality of the WM_QUERYUISTATE message, as described in the Platform SDK.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.