9 #include <X11/Intrinsic.h>
10 #include <X11/StringDefs.h>
12 #include <X11/Xaw/Form.h>
13 #include <X11/Xaw/Command.h>
14 #include <X11/Xaw/Box.h>
17 typedef struct tagMENUITEM
19 struct tagMENUITEM *next;
20 struct tagMENUITEM *prev;
21 struct tagMENUITEM *child;
22 struct tagMENUITEM *parent;
34 } MENUITEM, *LPMENUITEM;
36 typedef struct tagMENUBAR
38 struct tagMENUBAR *next;
39 HANDLE menuDescription; /* Memory containing menu desc. */
40 HWND ownerWnd; /* Owner window */
41 int nItems; /* Number of items on menu */
42 Widget parentWidget; /* Parent of menu widget */
43 Widget menuBarWidget; /* Widget to contain menu options */
45 } MENUBAR, *LPMENUBAR;
47 typedef struct tagPOPUPMENU
49 HWND hWnd; /* PopupMenu window handle */
50 HWND hWndParent; /* Parent opupMenu window handle */
51 HWND ownerWnd; /* Owner window */
52 WORD nItems; /* Number of items on menu */
59 } POPUPMENU, *LPPOPUPMENU;
63 WORD version; /* Should be zero */
64 WORD reserved; /* Must be zero */
69 WORD item_flags; /* See windows.h */
70 char item_text[1]; /* Text for menu item */
75 WORD item_flags; /* See windows.h */
76 WORD item_id; /* Control Id for menu item */
77 char item_text[1]; /* Text for menu item */
80 extern LPMENUBAR MENU_CreateMenuBar(Widget parent, HANDLE instance,
81 HWND wnd, char *menu_name, int width);
82 extern LPMENUBAR MENU_UseMenu(Widget parent, HANDLE instance,
83 HWND wnd, HMENU hmenu, int width);