CWnd::OnUpdateUIState
Visual Studio 2010
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 );
This member function emulates the functionality of the WM_UPDATEUISTATE message, as described in the Windows SDK.