Skip to content

Commit 9b9329f

Browse files
authored
Clarify sentence about updating UI item states (#5955)
Added a question mark to clarify the sentence about updating the state of user-interface items.
1 parent fbddead commit 9b9329f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/mfc/how-to-update-user-interface-objects.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["menus [MFC], updating as context changes", "user interfac
1111
1212
Typically, menu items and toolbar buttons have more than one state. For example, a menu item is grayed (dimmed) if it is unavailable in the present context. Menu items can also be checked or unchecked. A toolbar button can also be disabled if unavailable, or it can be checked.
1313

14-
Who updates the state of these items as program conditions change Logically, if a menu item generates a command that is handled by, say, a document, it makes sense to have the document update the menu item. The document probably contains the information on which the update is based.
14+
Who updates the state of these items as program conditions change? Logically, if a menu item generates a command that is handled by, say, a document, it makes sense to have the document update the menu item. The document probably contains the information on which the update is based.
1515

1616
If a command has multiple user-interface objects (perhaps a menu item and a toolbar button), both are routed to the same handler function. This encapsulates your user-interface update code for all of the equivalent user-interface objects in a single place.
1717

0 commit comments

Comments
 (0)