Export (0) Print
Expand All
MFC
Expand Minimize
0 out of 2 rated this helpful - Rate this topic

CWnd::OnUpdateUIState 

Called to to change the user interface (UI) state for the specified window and all its child windows.


afx_msg void OnUpdateUIState(
   UINT nAction,
   UINT nUIElement
);

Parameters

nAction

Specifies the action to be performed. Can be one of the following values:

  • UIS_CLEAR   The UI state element (specified by nUIElement) should be hidden.

  • UIS_INITIALIZE   The UI state element (specified by nUIElement) should be changed based on the last input event. For more information, see the Remarks section of WM_UPDATEISTATE.

  • UIS_SET   The UI state element (specified by nUIElement) should be visible.

nUIElement

Specifies which UI state elements are affected or the style of the control. Can be one of the following values:

  • UISF_HIDEACCEL   Keyboard accelerators.

  • UISF_HIDEFOCUS   Focus indicators.

  • 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_UPDATEUISTATE message, as described in the Platform SDK.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.