11 typedef struct tagMENUITEM
13 struct tagMENUITEM *next;
14 struct tagMENUITEM *prev;
24 } MENUITEM, *LPMENUITEM;
27 typedef struct tagPOPUPMENU
29 HWND hWnd; /* PopupMenu window handle */
30 HWND hWndParent; /* Parent PopupMenu window handle */
31 HWND ownerWnd; /* Owner window */
32 HWND hWndPrev; /* Previous Window Focus Owner */
33 WORD nItems; /* Number of items on menu */
37 BOOL BarFlag; /* TRUE if menu is a MENUBAR */
38 BOOL SysFlag; /* TRUE if menu is a SYSMENU */
39 BOOL ChildFlag; /* TRUE if child of other menu */
45 } POPUPMENU, *LPPOPUPMENU;
49 WORD version; /* Should be zero */
50 WORD reserved; /* Must be zero */
55 WORD item_flags; /* See windows.h */
56 char item_text[1]; /* Text for menu item */
61 WORD item_flags; /* See windows.h */
62 WORD item_id; /* Control Id for menu item */
63 char item_text[1]; /* Text for menu item */
66 void StdDrawMenuBar(HDC hDC, LPRECT lprect, LPPOPUPMENU lppop,
68 BOOL MenuButtonDown(HWND hWnd, LPPOPUPMENU lppop, int x, int y);
69 void MenuButtonUp(HWND hWnd, LPPOPUPMENU lppop, int x, int y);
70 void MenuMouseMove(HWND hWnd, LPPOPUPMENU lppop, WORD wParam, int x, int y);
71 extern void NC_TrackSysMenu(HWND hwnd);