Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>changemenu</b> append, insert, modify or delete menu item http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ChangeMenu  Append, insert, modify or delete menu item

BOOL ChangeMenu(hMenu, wIDChangeItem, lpNewItem, wIDNewItem, wChange)
HMENU hMenu; /* Menu to be changed */
WORD wIDChangeItem; /* Item to be changed, inserted before or NULL */
LPSTR lpNewItem; /* Point to bitmap handle or string */
WORD wIDNewItem; /* New menu item ID or handle to Pop-Up menu */
WORD wChange; /* One of more of the following */

        |-----------------------------------------------------------------|
        | APPEND       Add new item to end of menu.                       |
        | BITMAP       LOWORD(lpItem) is bitmap.                          |
        | BYCOMMAND    wIDChangeItem is menu item to be changed. (default)|
        | BYPOSITION   wIDChangeItem is position of item to be changed.   |
        | CHANGE       Change or replace specified item.                  |
        | CHECKED      Place check next to pop-up menu item.              |
        | DELETE       Delete specified item.                             |
        | DISABLED     Disable item without changing its appearance.      |
        | ENABLED      Enable item.                                       |
        | GRAYED       Disable and gray item.                             |
        | INSERT       Insert new item before specified item.             |
        | MENUBARBREAK Start new column in pop-up with separator.         |
        | MENUBREAK    Start new line or column without separator.        |
        | POPUP        Associate pop-up handle with menu item.            |
        | REMOVE       Remove but don't delete item.                      |
        | SEPARATOR    Append dividing line in pop-up menu.               |
        | STRING       lpNewItem points to a string. (default)            |
        | UNCHECKED    Remove checkmark from pop-up item.                 |
        +-----------------------------------------------------------------+


Returns:    Non-zero if ok.

See Also: CheckMenuItem DrawMenuBar EnableMenuItem GetMenu GetSystemMenu

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson