Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


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 Windows SDK.

Header: afxwin.h

Community Additions

© 2015 Microsoft