The information in this article applies to:
SUMMARY
To change the contents of a menu, you must have its handle. The handle
of the menu associated with a given window is available through the
GetMenu() function.
Where:
NOTE: Under Windows NT 4.0 or later, you can use the superseded function
GetMenuItemInfo.
If a menu item has a mnemonic, the text will contain an ampersand (&) character preceding the mnemonic character. To obtain the handle to a submenu of the menu bar, use the GetSubMenu() function. The second parameter, nPos, is the zero-based offset from the beginning of the menu. Additional query words:
Keywords : kbMenu kbNTOS kbResource kbGrpUser kbWinOS |
Last Reviewed: January 28, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |