#include "precomp.h"
Go to the source code of this file.
Defines | |
#define | CMENUITEMALLOC 8 |
#define | CMENUITEMDEALLOC 10 |
#define | NESTED_MENU_LIMIT 25 |
Typedefs | |
typedef BOOL(* | MENUAPIFN )(PMENU, UINT, BOOL, LPMENUITEMINFOW) |
Functions | |
BOOL | xxxSetLPITEMInfo (PMENU pMenu, PITEM pItem, LPMENUITEMINFOW lpmii, PUNICODE_STRING pstr) |
PMENU | UnlockSubMenu (PMENU pMenu, PMENU *ppSubMenu) |
CHAR | GetMenuDepth (PMENU pMenu, UINT uMaxAllowedDepth) |
CHAR | GetMenuAncestors (PMENU pMenu) |
BOOL | xxxSetMenuItemInfo (PMENU pMenu, UINT wIndex, BOOL fByPosition, LPMENUITEMINFOW lpmii, PUNICODE_STRING pstrItem) |
BOOL | xxxSetMenuInfo (PMENU pMenu, LPCMENUINFO lpmi) |
void | NNDeleteAdjustIndex (UINT *puAdjustIndex, UINT uDelIndex) |
void | MNDeleteAdjustIndexes (PMENUSTATE pMenuState, PPOPUPMENU ppopup, UINT uiPos) |
BOOL | xxxInsertMenuItem (PMENU pMenu, UINT wIndex, BOOL fByPosition, LPMENUITEMINFOW lpmii, PUNICODE_STRING pstrItem) |
void | FreeItemBitmap (PITEM pItem) |
void | FreeItemString (PMENU pMenu, PITEM pItem) |
void | MNFreeItem (PMENU pMenu, PITEM pItem, BOOL fFreeItemPopup) |
BOOL | xxxRemoveDeleteMenuHelper (PMENU pMenu, UINT nPosition, DWORD wFlags, BOOL fDeleteMenu) |
BOOL | xxxRemoveMenu (PMENU pMenu, UINT nPosition, UINT wFlags) |
BOOL | xxxDeleteMenu (PMENU pMenu, UINT nPosition, UINT wFlags) |
BOOL | _SetMenuContextHelpId (PMENU pMenu, DWORD dwContextHelpId) |
BOOL | _SetMenuFlagRtoL (PMENU pMenu) |
PPOPUPMENU | MNGetPopupFromMenu (PMENU pMenu, PMENUSTATE *ppMenuState) |
void | xxxMNUpdateShownMenu (PPOPUPMENU ppopup, PITEM pItem, UINT uFlags) |
|
Definition at line 21 of file mnchange.c. Referenced by xxxInsertMenuItem(). |
|
Definition at line 22 of file mnchange.c. Referenced by xxxRemoveDeleteMenuHelper(). |
|
Definition at line 76 of file mnchange.c. Referenced by GetMenuDepth(), and xxxSetLPITEMInfo(). |
|
Definition at line 25 of file mnchange.c. |
|
Definition at line 999 of file mnchange.c. References BOOL, tagMENU::dwContextHelpId, and TRUE. Referenced by NtUserSetMenuContextHelpId().
|
|
Definition at line 1008 of file mnchange.c. References BOOL, MFRTL, SetMF, and TRUE. Referenced by NtUserSetMenuFlagRtoL().
|
|
Definition at line 575 of file mnchange.c. References tagITEM::hbmp, NULL, and TestMFS. Referenced by MNFreeItem(), and xxxSetLPITEMInfo().
|
|
Definition at line 598 of file mnchange.c. References DesktopFree, tagMENU::head, tagITEM::lpstr, and NULL. Referenced by MNFreeItem(), and xxxSetLPITEMInfo().
|
|
Definition at line 126 of file mnchange.c. References CHAR, tagMENULIST::pMenu, tagMENULIST::pNext, and tagMENU::pParentMenus. Referenced by xxxSetLPITEMInfo().
|
|
Definition at line 86 of file mnchange.c. References CHAR, tagMENU::cItems, NESTED_MENU_LIMIT, NULL, tagMENU::rgItems, tagITEM::spSubMenu, and UINT. Referenced by xxxSetLPITEMInfo().
|
|
Definition at line 299 of file mnchange.c. References tagPOPUPMENU::fHierarchyDropped, NNDeleteAdjustIndex(), tagPOPUPMENU::posDropped, tagPOPUPMENU::posSelectedItem, tagPOPUPMENU::spwndPopupMenu, tagMENUSTATE::uButtonDownHitArea, tagMENUSTATE::uButtonDownIndex, tagMENUSTATE::uDraggingHitArea, and tagMENUSTATE::uDraggingIndex. Referenced by xxxInsertMenuItem(), and xxxRemoveDeleteMenuHelper().
|
|
Definition at line 617 of file mnchange.c. References _DestroyMenu(), FreeItemBitmap(), FreeItemString(), tagITEM::spSubMenu, and UnlockSubMenu(). Referenced by _DestroyMenu(), xxxInsertMenuItem(), and xxxRemoveDeleteMenuHelper().
|
|
Definition at line 1027 of file mnchange.c. References FALSE, tagMENUSTATE::fInsideMenuLoop, tagPOPUPMENU::fIsMenuBar, GetpMenuState(), MNAnimate(), NULL, tagMENUSTATE::pGlobalPopupMenu, tagPOPUPMENU::spmenu, tagPOPUPMENU::spwndNextPopup, and tagMENU::spwndNotify. Referenced by GetMenuPwnd(), MNFadeSelection(), xxxEnableMenuItem(), xxxInsertMenuItem(), xxxRemoveDeleteMenuHelper(), xxxSetLPITEMInfo(), and xxxSetMenuInfo().
|
|
Definition at line 279 of file mnchange.c. References MFMWFP_NOITEM. Referenced by MNDeleteAdjustIndexes().
|
|
Definition at line 52 of file mnchange.c. References DesktopFree, tagMENU::head, NULL, PMENULIST, tagMENULIST::pNext, and Unlock. Referenced by MNFreeItem(), and xxxSetLPITEMInfo().
|
|
Definition at line 782 of file mnchange.c. References BOOL, TRUE, and xxxRemoveDeleteMenuHelper(). Referenced by NtUserDeleteMenu(), and xxxCreateWindowEx().
|
|
Definition at line 323 of file mnchange.c. References BOOL, tagMENU::cAlloced, tagITEM::cch, CheckLock, tagMENU::cItems, CMENUITEMALLOC, tagITEM::cxBmp, tagITEM::cxItem, tagITEM::cyItem, DesktopAlloc(), DesktopFree, DTAG_MENUITEM, tagITEM::dwItemData, FALSE, tagPOPUPMENU::fHierarchyDropped, tagITEM::fState, tagITEM::fType, tagITEM::hbmp, tagITEM::hbmpChecked, tagITEM::hbmpUnchecked, tagMENU::head, ITEM, tagITEM::lpstr, MakeMenuRtoL(), MFISPOPUP, MFMWFP_NOITEM, MFRTL, MNDeleteAdjustIndexes(), MNFreeItem(), MNGetpItemIndex, MNGetPopupFromMenu(), MNIS_MEASUREBMP, MNLookUpItem(), NULL, PBYTE, tagPOPUPMENU::posDropped, tagPOPUPMENU::posSelectedItem, tagMENU::rgItems, tagITEM::spSubMenu, tagPOPUPMENU::spwndPopupMenu, TestMF, TestMFT, ThreadLock, ThreadUnlock, TRUE, tagMENUSTATE::uButtonDownHitArea, tagMENUSTATE::uButtonDownIndex, tagMENUSTATE::uDraggingFlags, tagMENUSTATE::uDraggingHitArea, tagMENUSTATE::uDraggingIndex, UINT, tagITEM::wID, tagITEM::xItem, xxxMNSetGapState(), xxxSetLPITEMInfo(), and tagITEM::yItem. Referenced by NtUserThunkedMenuItemInfo().
|
|
Definition at line 1106 of file mnchange.c. References _GetClientRect(), tagMENU::cxMenu, tagITEM::cyItem, tagMENU::cyMenu, tagMENU::dwArrowsOn, DWORD, L, MNGetToppItem(), MNUS_DELETE, MNUS_DRAWFRAME, MSA_OFF, NULL, tagPOPUPMENU::spmenu, tagPOPUPMENU::spwndPopupMenu, ThreadLock, ThreadUnlock, TRUE, xxxInvalidateRect(), xxxScrollWindowEx(), xxxSendMessage(), xxxSetWindowPos(), and tagITEM::yItem. Referenced by xxxEnableMenuItem(), xxxRemoveDeleteMenuHelper(), xxxSetLPITEMInfo(), and xxxSetMenuInfo().
|
|
Definition at line 644 of file mnchange.c. References BOOL, CheckLock, CMENUITEMDEALLOC, DesktopAlloc(), DesktopFree, DTAG_MENUITEM, FALSE, ITEM, MNDeleteAdjustIndexes(), MNFreeItem(), MNGetpItemIndex, MNGetPopupFromMenu(), MNLookUpItem(), MNUS_DELETE, NULL, PBYTE, TRUE, UINT, and xxxMNUpdateShownMenu(). Referenced by xxxDeleteMenu(), and xxxRemoveMenu().
|
|
Definition at line 766 of file mnchange.c. References BOOL, FALSE, and xxxRemoveDeleteMenuHelper(). Referenced by NtUserRemoveMenu().
|
|
Definition at line 796 of file mnchange.c. References _CreateMenu(), _DestroyMenu(), BOOL, tagITEM::cch, CheckLock, ClearMF, ClearMFS, tagITEM::cxBmp, tagMENU::cxMenu, tagMENU::cyMenu, DesktopAlloc(), DesktopFree, DTAG_MENUITEM, DTAG_MENUTEXT, tagITEM::dwItemData, tagITEM::dxTab, FALSE, FreeItemBitmap(), FreeItemString(), tagITEM::fState, tagITEM::fType, GetMenuAncestors(), GetMenuDepth(), tagITEM::hbmp, tagITEM::hbmpChecked, tagITEM::hbmpUnchecked, tagMENU::head, Lock, tagITEM::lpstr, MENULIST, MFISPOPUP, MNGetPopupFromMenu(), MNIS_MEASUREBMP, MNUS_DEFAULT, NESTED_MENU_LIMIT, NULL, tagMENULIST::pMenu, tagMENULIST::pNext, tagMENU::pParentMenus, SetMF, SetMFS, tagITEM::spSubMenu, TRUE, UINT, tagITEM::ulWidth, tagITEM::ulX, UNDERLINE_RECALC, Unlock, UnlockSubMenu(), ValidateHmenu(), tagITEM::wID, and xxxMNUpdateShownMenu(). Referenced by xxxInsertMenuItem(), and xxxSetMenuItemInfo().
|
|
Definition at line 204 of file mnchange.c. References BOOL, CheckLock, tagMENU::cItems, tagMENU::cxMenu, tagMENU::cyMax, tagMENU::cyMenu, tagMENU::dwArrowsOn, tagMENU::dwContextHelpId, tagMENU::dwMenuData, FALSE, tagMENU::fFlags, tagMENU::hbrBack, MNGetPopupFromMenu(), MNUS_DEFAULT, MNUS_DRAWFRAME, MSA_OFF, NULL, tagMENU::rgItems, tagITEM::spSubMenu, ThreadLock, ThreadUnlock, TRUE, UINT, and xxxMNUpdateShownMenu(). Referenced by NtUserThunkedMenuInfo().
|
|
Definition at line 146 of file mnchange.c. References BOOL, CheckLock, FALSE, MakeMenuRtoL(), MFRTL, MNLookUpItem(), NULL, TestMF, TRUE, and xxxSetLPITEMInfo(). Referenced by NtUserThunkedMenuItemInfo().
|