ReactOS 0.4.16-dev-980-g00983aa
|
#include <win32k.h>
Go to the source code of this file.
Classes | |
struct | MTRACKER |
Variables | |
HFONT | ghMenuFont = NULL |
HFONT | ghMenuFontBold = NULL |
static SIZE | MenuCharSize |
static HWND | top_popup = NULL |
static HMENU | top_popup_hmenu = NULL |
BOOL | fInsideMenuLoop = FALSE |
BOOL | fInEndMenu = FALSE |
#define FreeMenuText | ( | Menu, | |
MenuItem | |||
) |
#define IS_STRING_ITEM | ( | flags | ) | (MF_STRING == MENU_ITEM_TYPE(flags)) |
#define IS_SYSTEM_MENU | ( | MenuInfo | ) | (!!((MenuInfo)->fFlags & MNF_SYSMENU)) |
#define MENUITEMINFO_STATE_MASK (STATE_MASK & ~(MF_BYPOSITION | MF_MOUSESELECT)) |
#define MENUITEMINFO_TYPE_MASK |
#define MII_STATE_MASK (MFS_GRAYED|MFS_CHECKED|MFS_HILITE|MFS_DEFAULT) |
#define MNS_STYLE_MASK (MNS_NOCHECK|MNS_MODELESS|MNS_DRAGDROP|MNS_AUTODISMISS|MNS_NOTIFYBYPOS|MNS_CHECKORBMP) |
#define TYPE_MASK (MENUITEMINFO_TYPE_MASK | MF_POPUP | MF_SYSMENU) |
Definition at line 1348 of file menu.c.
Referenced by MENU_DoNextMenu(), and MENU_FindItemByKey().
DBG_DEFAULT_CHANNEL | ( | UserMenu | ) |
Definition at line 258 of file menu.c.
Referenced by MENU_DoNextMenu(), MENU_PtMenu(), MENU_TrackKbdMenuBar(), and MENU_TrackMouseMenuBar().
Definition at line 1259 of file menu.c.
Referenced by NtUserCheckMenuItem().
Definition at line 822 of file menu.c.
Referenced by MENU_GetSystemMenu().
Definition at line 771 of file menu.c.
Referenced by IntCloneMenu().
PMENU FASTCALL IntCreateMenu | ( | _Out_ PHANDLE | Handle, |
_In_ BOOL | IsMenuBar, | ||
_In_ PDESKTOP | Desktop, | ||
_In_ PPROCESSINFO | ppi | ||
) |
Definition at line 729 of file menu.c.
Referenced by IntSetMenuItemInfo(), and UserCreateMenu().
Definition at line 269 of file menu.c.
Referenced by IntDestroyMenuObject().
Definition at line 317 of file menu.c.
Referenced by co_UserFreeWindow(), IntDestroyMenu(), IntGetSystemMenu(), IntRemoveMenuItem(), IntSetMenuItemInfo(), IntSetSystemMenu(), MENU_GetSystemMenu(), NtUserDestroyMenu(), UserDestroyMenu(), and UserDestroyMenuObject().
Definition at line 2685 of file menu.c.
Referenced by MENU_DrawMenuBar(), and NtUserDrawMenuBarTemp().
Definition at line 1217 of file menu.c.
Referenced by MENU_InitSysMenuPopup(), and NtUserEnableMenuItem().
Definition at line 5031 of file menu.c.
Referenced by co_IntTranslateAccelerator().
Definition at line 1800 of file menu.c.
Referenced by MENU_CalcItemSize().
Definition at line 248 of file menu.c.
Referenced by MENU_ButtonUp(), MENU_DoNextMenu(), MENU_PtMenu(), MENU_TrackKbdMenuBar(), and MENU_TrackMouseMenuBar().
UINT FASTCALL IntGetMenuDefaultItem | ( | PMENU | MenuObject, |
UINT | fByPos, | ||
UINT | gmdiFlags, | ||
DWORD * | gismc | ||
) |
Definition at line 1315 of file menu.c.
Referenced by GetMenuDefaultItem(), and IntGetMenuDefaultItem().
BOOL FASTCALL IntGetMenuInfo | ( | PMENU | Menu, |
PROSMENUINFO | lpmi | ||
) |
Definition at line 879 of file menu.c.
Referenced by UserMenuInfo().
BOOL FASTCALL IntGetMenuItemInfo | ( | PMENU | Menu, |
PITEM | MenuItem, | ||
PROSMENUITEMINFO | lpmii | ||
) |
Definition at line 962 of file menu.c.
Referenced by IntMenuItemInfo(), and UserMenuItemInfo().
Definition at line 5246 of file menu.c.
Referenced by NtUserGetMenuBarInfo().
Definition at line 192 of file menu.c.
Referenced by IntSetMenu(), NtUserCallTwoParam(), and NtUserSetSystemMenu().
Definition at line 4991 of file menu.c.
Referenced by co_IntTranslateAccelerator(), NC_DoButton(), NC_HandleNCLButtonDblClk(), and UserDrawCaptionButton().
Definition at line 5011 of file menu.c.
Referenced by IntGetSystemMenu().
Definition at line 5399 of file menu.c.
Referenced by IntDefWindowProc(), MENU_TrackMouseMenuBar(), NC_DoButton(), NC_HandleNCLButtonDblClk(), NC_HandleNCRButtonDown(), NtUserGetMenuBarInfo(), NtUserGetSystemMenu(), and UserDrawCaptionButton().
BOOLEAN APIENTRY intGetTitleBarInfo | ( | PWND | pWindowObject, |
PTITLEBARINFO | bti | ||
) |
Definition at line 4820 of file menu.c.
Referenced by NtUserGetTitleBarInfo().
BOOL FASTCALL IntHiliteMenuItem | ( | PWND | WindowObject, |
PMENU | MenuObject, | ||
UINT | uItemHilite, | ||
UINT | uHilite | ||
) |
BOOL FASTCALL IntInsertMenuItem | ( | _In_ PMENU | MenuObject, |
UINT | uItem, | ||
BOOL | fByPosition, | ||
PROSMENUITEMINFO | ItemInfo, | ||
PUNICODE_STRING | lpstr | ||
) |
Definition at line 691 of file menu.c.
Referenced by MENU_GetSystemMenu(), and UserInsertMenuItem().
Definition at line 1518 of file menu.c.
Referenced by IntDefWindowProc().
BOOL FASTCALL IntMenuItemInfo | ( | PMENU | Menu, |
UINT | Item, | ||
BOOL | ByPosition, | ||
PROSMENUITEMINFO | ItemInfo, | ||
BOOL | SetOrGet, | ||
PUNICODE_STRING | lpstr | ||
) |
Definition at line 5092 of file menu.c.
Referenced by MENU_GetSystemMenu().
Definition at line 596 of file menu.c.
Referenced by IntInsertMenuItem(), MENU_GetSystemMenu(), NtUserDeleteMenu(), and NtUserRemoveMenu().
Definition at line 5475 of file menu.c.
Referenced by IntCreateWindow(), and NtUserSetMenu().
Definition at line 872 of file menu.c.
Referenced by NtUserSetMenuContextHelpId().
BOOL FASTCALL IntSetMenuInfo | ( | PMENU | Menu, |
PROSMENUINFO | lpmi | ||
) |
Definition at line 914 of file menu.c.
Referenced by IntSetMenuInfo(), and UserMenuInfo().
BOOL FASTCALL IntSetMenuItemInfo | ( | PMENU | MenuObject, |
PITEM | MenuItem, | ||
PROSMENUITEMINFO | lpmii, | ||
PUNICODE_STRING | lpstr | ||
) |
Definition at line 1033 of file menu.c.
Referenced by IntInsertMenuItem(), IntMenuItemInfo(), and UserMenuItemInfo().
Definition at line 5442 of file menu.c.
Referenced by NtUserSetSystemMenu().
BOOL WINAPI IntTrackPopupMenuEx | ( | PMENU | menu, |
UINT | wFlags, | ||
int | x, | ||
int | y, | ||
PWND | pWnd, | ||
LPTPMPARAMS | lpTpm | ||
) |
Definition at line 4577 of file menu.c.
Referenced by IntDefWindowProc(), and NtUserTrackPopupMenuEx().
Definition at line 1462 of file menu.c.
Referenced by MENU_DrawMenuItem(), MENU_FindItemByCoords(), MENU_ShowSubPopup(), and NtUserMenuItemFromPoint().
Definition at line 3558 of file menu.c.
Referenced by MENU_TrackMenu().
Definition at line 3603 of file menu.c.
Referenced by MENU_TrackMenu().
|
static |
Definition at line 1825 of file menu.c.
Referenced by MENU_MenuBarCalcSize(), and MENU_PopupMenuCalcSize().
Definition at line 404 of file menu.c.
Referenced by IntSetMenuItemInfo(), and MENU_depth().
Definition at line 3735 of file menu.c.
Referenced by MENU_KeyLeft(), and MENU_KeyRight().
|
static |
Definition at line 1653 of file menu.c.
Referenced by MENU_DrawMenuItem().
Definition at line 2742 of file menu.c.
Referenced by NC_DoNCPaint(), NC_HandleNCCalcSize(), NtUserCalcMenuBar(), NtUserPaintMenuBar(), and UserDrawCaptionBar().
|
static |
Definition at line 2204 of file menu.c.
Referenced by IntDrawMenuBarTemp(), MENU_DrawPopupMenu(), MENU_SelectItem(), and MENU_ShowSubPopup().
|
static |
Definition at line 1398 of file menu.c.
Referenced by MENU_DrawBitmapItem().
Definition at line 2599 of file menu.c.
Referenced by PopupMenuWndProc().
Definition at line 2176 of file menu.c.
Referenced by MENU_DrawPopupMenu(), and MENU_EnsureMenuItemVisible().
Definition at line 2662 of file menu.c.
Referenced by IntDefWindowProc().
Definition at line 3102 of file menu.c.
Referenced by MENU_SelectItem().
Definition at line 3478 of file menu.c.
Referenced by MENU_ButtonUp(), and MENU_TrackMenu().
Definition at line 4464 of file menu.c.
Referenced by IntTrackPopupMenuEx(), MENU_TrackKbdMenuBar(), and MENU_TrackMouseMenuBar().
Definition at line 507 of file menu.c.
Referenced by CheckMenuItem(), CheckMenuRadioItem(), co_IntGetSubMenu(), co_IntTranslateAccelerator(), GetMenuItemID(), GetMenuItemInfo_common(), GetMenuState(), GetMenuStringA(), GetMenuStringW(), GetSubMenu(), IntCheckMenuItem(), IntEnableMenuItem(), IntGetMenuItemRect(), IntGetMenuState(), IntGetSubMenu(), IntHiliteMenuItem(), IntMenuItemInfo(), IntRemoveMenuItem(), MENU_FindItem(), MENU_InsertItem(), NtUserGetMenuItemRect(), and UserMenuItemInfo().
Definition at line 1480 of file menu.c.
Referenced by IntMenuItemFromPoint(), MENU_ButtonDown(), MENU_ButtonUp(), and MENU_MouseMove().
|
static |
Definition at line 1535 of file menu.c.
Referenced by MENU_TrackKbdMenuBar(), and MENU_TrackMenu().
Definition at line 564 of file menu.c.
Referenced by IntFindSubMenu(), MENU_FindSubMenu(), and MENU_SelectItem().
Definition at line 1588 of file menu.c.
Referenced by MENU_CalcItemSize().
Definition at line 1996 of file menu.c.
Referenced by MENU_DrawScrollArrows(), MENU_EnsureMenuItemVisible(), and MENU_PopupMenuCalcSize().
Definition at line 437 of file menu.c.
Referenced by MENU_KeyRight().
Definition at line 467 of file menu.c.
Referenced by MENU_KeyLeft().
Definition at line 3716 of file menu.c.
Referenced by MENU_KeyEscape(), and MENU_KeyLeft().
Definition at line 5294 of file menu.c.
Referenced by IntGetSystemMenu(), and IntSetSystemMenu().
|
static |
Definition at line 3267 of file menu.c.
Referenced by IntHiliteMenuItem(), MENU_DoNextMenu(), MENU_HideSubPopups(), MENU_KeyEscape(), MENU_KeyLeft(), MENU_KeyRight(), MENU_SwitchTracking(), and MENU_TrackMenu().
Definition at line 2781 of file menu.c.
Referenced by IntTrackPopupMenuEx(), and MENU_ShowSubPopup().
Definition at line 1362 of file menu.c.
Referenced by IntDefWindowProc(), IntTrackPopupMenuEx(), and MENU_ShowSubPopup().
Definition at line 4404 of file menu.c.
Referenced by IntTrackPopupMenuEx(), MENU_TrackKbdMenuBar(), and MENU_TrackMouseMenuBar().
Definition at line 639 of file menu.c.
Referenced by IntInsertMenuItem().
Definition at line 2650 of file menu.c.
Referenced by IntDefWindowProc().
Definition at line 3913 of file menu.c.
Referenced by MENU_TrackMenu().
Definition at line 3946 of file menu.c.
Referenced by MENU_TrackMenu().
Definition at line 3994 of file menu.c.
Referenced by MENU_TrackMenu().
Definition at line 2101 of file menu.c.
Referenced by IntDrawMenuBarTemp(), and MENU_DrawMenuBar().
Definition at line 3692 of file menu.c.
Referenced by MENU_TrackMenu().
|
static |
Definition at line 2888 of file menu.c.
Referenced by MENU_ShowPopup().
Definition at line 3231 of file menu.c.
Referenced by MENU_KeyLeft(), MENU_KeyRight(), MENU_ShowSubPopup(), MENU_TrackKbdMenuBar(), and MENU_TrackMenu().
Definition at line 2012 of file menu.c.
Referenced by MENU_ShowPopup().
Definition at line 3652 of file menu.c.
Referenced by MENU_PtMenu(), and MENU_TrackMenu().
|
static |
Definition at line 3144 of file menu.c.
Referenced by IntHiliteMenuItem(), MENU_DoNextMenu(), MENU_HideSubPopups(), MENU_KeyLeft(), MENU_KeyRight(), MENU_MouseMove(), MENU_MoveSelection(), MENU_SwitchTracking(), MENU_TrackKbdMenuBar(), and MENU_TrackMenu().
|
static |
Definition at line 2939 of file menu.c.
Referenced by IntTrackPopupMenuEx(), and MENU_ShowSubPopup().
|
static |
Definition at line 3321 of file menu.c.
Referenced by MENU_ButtonDown(), MENU_ExecFocusedItem(), MENU_KeyLeft(), MENU_KeyRight(), MENU_MouseMove(), and MENU_TrackMenu().
Definition at line 3877 of file menu.c.
Referenced by MENU_KeyLeft(), and MENU_KeyRight().
|
static |
Definition at line 3533 of file menu.c.
Referenced by MENU_ButtonDown(), and MENU_MouseMove().
Definition at line 4516 of file menu.c.
Referenced by DefWndHandleSysCommand().
Definition at line 4050 of file menu.c.
Referenced by IntTrackPopupMenuEx(), MENU_TrackKbdMenuBar(), and MENU_TrackMouseMenuBar().
Definition at line 4486 of file menu.c.
Referenced by DefWndHandleSysCommand().
Definition at line 359 of file menu.c.
Referenced by ClientThreadSetupHelper(), and co_IntInitializeDesktopGraphics().
DWORD APIENTRY NtUserCalcMenuBar | ( | HWND | hwnd, |
DWORD | leftBorder, | ||
DWORD | rightBorder, | ||
DWORD | top, | ||
LPRECT | prc | ||
) |
Definition at line 5600 of file menu.c.
Referenced by CheckMenuItem().
Definition at line 5626 of file menu.c.
Referenced by DeleteMenu().
Definition at line 5834 of file menu.c.
Referenced by DestroyMenu(), and WIN_CreateWindowEx().
Definition at line 6240 of file menu.c.
Definition at line 5864 of file menu.c.
Referenced by EnableMenuItem().
Definition at line 5890 of file menu.c.
Definition at line 5920 of file menu.c.
Definition at line 6080 of file menu.c.
Referenced by GetMenuIndex().
Definition at line 6116 of file menu.c.
Definition at line 5676 of file menu.c.
Referenced by GetSystemMenu().
BOOLEAN APIENTRY NtUserGetTitleBarInfo | ( | HWND | hwnd, |
PTITLEBARINFO | bti | ||
) |
Definition at line 5750 of file menu.c.
Referenced by GetTitleBarInfo(), and START_TEST().
Definition at line 6297 of file menu.c.
DWORD APIENTRY NtUserPaintMenuBar | ( | HWND | hWnd, |
HDC | hDC, | ||
ULONG | leftBorder, | ||
ULONG | rightBorder, | ||
ULONG | top, | ||
BOOL | bActive | ||
) |
Definition at line 6391 of file menu.c.
Referenced by RemoveMenu().
Definition at line 6417 of file menu.c.
Referenced by SetMenu().
Definition at line 6460 of file menu.c.
Referenced by SetMenuContextHelpId().
Definition at line 6485 of file menu.c.
Referenced by SetMenuDefaultItem().
Definition at line 6511 of file menu.c.
Definition at line 5711 of file menu.c.
Referenced by SetSystemMenu().
BOOL APIENTRY NtUserThunkedMenuInfo | ( | HMENU | hMenu, |
LPCMENUINFO | lpcmi | ||
) |
Definition at line 6535 of file menu.c.
Referenced by SetMenuInfo().
BOOL APIENTRY NtUserThunkedMenuItemInfo | ( | HMENU | hMenu, |
UINT | uItem, | ||
BOOL | fByPosition, | ||
BOOL | bInsert, | ||
LPMENUITEMINFOW | lpmii, | ||
PUNICODE_STRING | lpszCaption | ||
) |
Definition at line 6560 of file menu.c.
Referenced by AppendMenuA(), AppendMenuW(), CheckMenuRadioItem(), InsertMenuA(), InsertMenuItemA(), InsertMenuItemW(), InsertMenuW(), ModifyMenuA(), ModifyMenuW(), SetMenuItemInfoA(), and SetMenuItemInfoW().
BOOL APIENTRY NtUserTrackPopupMenuEx | ( | HMENU | hMenu, |
UINT | fuFlags, | ||
int | x, | ||
int | y, | ||
HWND | hWnd, | ||
LPTPMPARAMS | lptpm | ||
) |
Definition at line 6624 of file menu.c.
Referenced by TrackPopupMenu().
BOOL WINAPI PopupMenuWndProc | ( | PWND | Wnd, |
UINT | Message, | ||
WPARAM | wParam, | ||
LPARAM | lParam, | ||
LRESULT * | lResult | ||
) |
Definition at line 4647 of file menu.c.
Referenced by co_IntSendMessageTimeoutSingle(), co_IntSendMessageWithCallBack(), IntDispatchMessage(), and NtUserMessageCall().
Definition at line 959 of file draw.c.
Referenced by DrawFrameControl(), MENU_DrawMenuItem(), MENU_DrawScrollArrows(), and RealDrawFrameControl().
Definition at line 5048 of file menu.c.
Referenced by MENU_GetSystemMenu(), and NtUserCallNoParam().
Definition at line 5812 of file menu.c.
Referenced by MENU_GetSystemMenu().
DWORD FASTCALL UserInsertMenuItem | ( | PMENU | Menu, |
UINT | uItem, | ||
BOOL | fByPosition, | ||
LPCMENUITEMINFOW | UnsafeItemInfo, | ||
PUNICODE_STRING | lpstr | ||
) |
Definition at line 4951 of file menu.c.
Referenced by NtUserThunkedMenuItemInfo().
BOOL FASTCALL UserMenuInfo | ( | PMENU | Menu, |
PROSMENUINFO | UnsafeMenuInfo, | ||
BOOL | SetOrGet | ||
) |
Definition at line 5194 of file menu.c.
Referenced by NtUserThunkedMenuInfo().
BOOL FASTCALL UserMenuItemInfo | ( | PMENU | Menu, |
UINT | Item, | ||
BOOL | ByPosition, | ||
PROSMENUITEMINFO | UnsafeItemInfo, | ||
BOOL | SetOrGet, | ||
PUNICODE_STRING | lpstr | ||
) |
Definition at line 5120 of file menu.c.
Referenced by NtUserThunkedMenuItemInfo().
Definition at line 1274 of file menu.c.
Referenced by IntSetMenuItemInfo(), MENU_GetSystemMenu(), MENU_InitSysMenuPopup(), and NtUserSetMenuDefaultItem().
Definition at line 201 of file menu.c.
Referenced by MENU_FindItemByKey(), MENU_HideSubPopups(), MENU_TrackKbdMenuBar(), MENU_TrackMenu(), and MENU_TrackMouseMenuBar().
Definition at line 26 of file menu.c.
Referenced by MENU_EndMenu(), and MENU_InitTracking().
Definition at line 25 of file menu.c.
Referenced by MENU_EndMenu(), MENU_InitTracking(), MENU_TrackMenu(), and NtUserEndMenu().
Definition at line 16 of file menu.c.
Referenced by IntDrawMenuBarTemp(), MENU_DrawMenuBar(), MENU_DrawPopupMenu(), MENU_PopupMenuCalcSize(), MENU_SelectItem(), MENU_ShowSubPopup(), and MenuInit().
Definition at line 17 of file menu.c.
Referenced by MENU_CalcItemSize(), MENU_DrawMenuItem(), and MenuInit().
|
static |
Definition at line 18 of file menu.c.
Referenced by MENU_CalcItemSize(), and MENU_DrawMenuItem().
Definition at line 22 of file menu.c.
Referenced by MENU_EndMenu(), MENU_ExitTracking(), MENU_HideSubPopups(), MENU_InitTracking(), MENU_IsMenuActive(), MENU_SelectItem(), MENU_ShowPopup(), NtUserEndMenu(), and PopupMenuWndProc().
Definition at line 23 of file menu.c.
Referenced by MENU_EndMenu(), MENU_ExitTracking(), MENU_HideSubPopups(), MENU_InitTracking(), MENU_SelectItem(), MENU_ShowPopup(), NtUserGetMenuBarInfo(), and PopupMenuWndProc().