 |
InsertMenuItem ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The InsertMenuItem function inserts a new menu item at the specified position in a menu. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL InsertMenuItem(
HMENU hMenu, // handle to menu
UINT uItem, // identifier or position
BOOL fByPosition, // meaning of uItem
LPCMENUITEMINFO lpmii // menu item information
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER InsertMenuItem IN user32;
INTEGER hMenu,;
INTEGER uItem,;
INTEGER fByPosition,;
STRING @ lpmii
|
 |
 |
 |
| Parameters: |
 |
hMenu
[in] Handle to the menu in which the new menu item is inserted.
uItem
[in] Identifier or position of the menu item before which to insert the new item. The meaning of this parameter depends on the value of fByPosition.
fByPosition
[in] Value specifying the meaning of uItem. If this parameter is FALSE, uItem is a menu item identifier. Otherwise, it is a menu item position.
lpmii
[in] Pointer to a MENUITEMINFO structure that contains information about the new menu item. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. |
 |
 |
| Word Index links for the InsertMenuItem : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-09 12:17:01 | | Modified: | 2001-12-09 12:18:51 | Visited in last 7 days: 28 |