Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.13 KB

the-ccmdui-class.md

File metadata and controls

18 lines (13 loc) · 1.13 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: The CCmdUI Class
The CCmdUI Class
11/04/2016
updating user interface objects [MFC]
user interface objects [MFC], updating
CCmdUI class [MFC], menu updating
update handlers [MFC]
toolbars [MFC], updating
2f2bae62-8c29-45a4-bbce-490eb01907d5

The CCmdUI Class

When it routes an update command to its handler, the framework passes the handler a pointer to a CCmdUI object (or to an object of a CCmdUI-derived class). This object represents the menu item or toolbar button or other user-interface object that generated the command. The update handler calls member functions of the CCmdUI structure through the pointer to update the user-interface object. For example, here is an update handler for the Clear All menu item:

[!code-cppNVC_MFCDocView#3]

This handler calls the Enable member function of an object with access to the menu item. Enable makes the item available for use.

See also

How to: Update User-Interface Objects