 |
AppendMenu ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The AppendMenu function appends a new item to the end of the specified menu bar, drop-down menu, submenu, or shortcut menu. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL AppendMenu(
HMENU hMenu, // handle to menu
UINT uFlags, // menu-item options
UINT_PTR uIDNewItem, // identifier, menu, or submenu
LPCTSTR lpNewItem // menu-item content
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER AppendMenu IN user32;
INTEGER hMenu,;
INTEGER uFlags,;
INTEGER uIDNewItem,;
STRING @ lpNewItem
|
 |
 |
 |
| Parameters: |
 |
hMenu
[in] Handle to the menu bar, drop-down menu, submenu, or shortcut menu to be changed.
uFlags
[in] Specifies flags to control the appearance and behavior of the new menu item.
uIDNewItem
[in] Specifies either the identifier of the new menu item or, if the uFlags parameter is set to MF_POPUP, a handle to the drop-down menu or submenu.
lpNewItem
[in] Specifies the content of the new menu item. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. |
 |
 |
| My comment: |
 |
| MSDN: the AppendMenu function has been superseded by the InsertMenuItem function. You can still use AppendMenu, however, if you do not need any of the extended features of InsertMenuItem. |
 |
 |
| Word Index links for the AppendMenu : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-09 12:13:45 | | Modified: | 2001-12-09 12:16:21 | Visited in last 7 days: 39 |