11 typedef struct tagMENUITEM
13 struct tagMENUITEM
*next
;
14 struct tagMENUITEM
*prev
;
15 struct tagMENUITEM
*child
;
16 struct tagMENUITEM
*parent
;
26 } MENUITEM
, *LPMENUITEM
;
29 typedef struct tagPOPUPMENU
31 HWND hWnd
; /* PopupMenu window handle */
32 HWND hWndParent
; /* Parent PopupMenu window handle */
33 HWND ownerWnd
; /* Owner window */
34 HWND hWndPrev
; /* Previous Window Focus Owner */
35 WORD nItems
; /* Number of items on menu */
39 BOOL BarFlag
; /* TRUE if menu is a MENUBAR */
40 BOOL SysFlag
; /* TRUE if menu is a SYSMENU */
41 BOOL ChildFlag
; /* TRUE if child of other menu */
47 } POPUPMENU
, *LPPOPUPMENU
;
51 WORD version
; /* Should be zero */
52 WORD reserved
; /* Must be zero */
57 WORD item_flags
; /* See windows.h */
58 char item_text
[1]; /* Text for menu item */
63 WORD item_flags
; /* See windows.h */
64 WORD item_id
; /* Control Id for menu item */
65 char item_text
[1]; /* Text for menu item */
68 void StdDrawMenuBar(HDC hDC
, LPRECT lprect
, LPPOPUPMENU lppop
);
69 BOOL
MenuButtonDown(HWND hWnd
, LPPOPUPMENU lppop
, int x
, int y
);
70 void MenuButtonUp(HWND hWnd
, LPPOPUPMENU lppop
, int x
, int y
);
71 void MenuMouseMove(HWND hWnd
, LPPOPUPMENU lppop
, WORD wParam
, int x
, int y
);
72 extern void NC_TrackSysMenu(HWND hwnd
);