3 #ifndef WIN32K_MENU_H_INCLUDED
4 #define WIN32K_MENU_H_INCLUDED
6 typedef struct tagROSMENUINFO
{
7 /* ----------- MENUINFO ----------- */
13 DWORD dwContextHelpID
;
15 /* ----------- Extra ----------- */
16 HMENU Self
; /* Handle of this menu */
17 WORD Flags
; /* Menu flags (MF_POPUP, MF_SYSMENU) */
18 UINT FocusedItem
; /* Currently focused item */
19 UINT MenuItemCount
; /* Number of items in the menu */
20 HWND Wnd
; /* Window containing the menu */
21 WORD Width
; /* Width of the whole menu */
22 WORD Height
; /* Height of the whole menu */
23 HWND WndOwner
; /* window receiving the messages for ownerdraw */
24 BOOL TimeToHide
; /* Request hiding when receiving a second click in the top-level menu item */
25 } ROSMENUINFO
, *PROSMENUINFO
;
27 /* (other FocusedItem values give the position of the focused item) */
28 #define NO_SELECTED_ITEM 0xffff
30 typedef struct tagROSMENUITEMINFO
32 /* ----------- MENUITEMINFOW ----------- */
40 HBITMAP hbmpUnchecked
;
45 /* ----------- Extra ----------- */
46 RECT Rect
; /* Item area (relative to menu window) */
47 UINT XTab
; /* X position of text after Tab */
48 } ROSMENUITEMINFO
, *PROSMENUITEMINFO
;
50 typedef struct _SETMENUITEMRECT
55 } SETMENUITEMRECT
, *PSETMENUITEMRECT
;
59 NtUserBuildMenuItemList(
74 NtUserCreateMenu(BOOL PopupMenu
);
90 NtUserDrawMenuBarTemp(
106 NtUserInsertMenuItem(
110 LPCMENUITEMINFOW lpmii
);
117 NtUserGetMenuDefaultItem(
124 NtUserGetMenuBarInfo(
138 NtUserGetMenuItemRect(
152 NtUserHiliteMenuItem(
168 NtUserMenuItemFromPoint(
180 PROSMENUITEMINFO lpmii
,
200 NtUserSetMenuContextHelpId(
202 DWORD dwContextHelpId
);
206 NtUserSetMenuDefaultItem(
213 NtUserSetMenuFlagRtoL(
224 NtUserThunkedMenuInfo(
230 NtUserThunkedMenuItemInfo(
235 LPMENUITEMINFOW lpmii
,
236 PUNICODE_STRING lpszCaption
);
240 NtUserTrackPopupMenuEx(
248 #endif /* WIN32K_MENU_H_INCLUDED */