#include "precomp.h"
Go to the source code of this file.
Defines | |
#define | SRCSTENCIL 0x00B8074AL |
#define | MENU_STRLEN 255 |
Functions | |
__inline BOOL | MNIsCachedBmpOnly (PITEM pItem) |
BOOL | mnDrawHilite (PITEM pItem) |
void | MNDrawMenu3DHotTracking (HDC hdc, PMENU pMenu, PITEM pItem) |
void | MNDrawArrow (HDC hdcIn, PPOPUPMENU ppopup, UINT uArrow) |
void | MNDrawFullNC (PWND pwnd, HDC hdcIn, PPOPUPMENU ppopup) |
void | MNEraseBackground (HDC hdc, PMENU pmenu, int x, int y, int cx, int cy) |
void | MNAnimate (PMENUSTATE pMenuState, BOOL fIterate) |
BOOL | DrawMenuItemCheckMark (HDC hdc, PITEM pItem, int xPos) |
void | xxxDrawItemUnderline (PITEM pItem, HDC hdc, int xLeft, int yTop, LPWSTR pszMenu, LONG lResLo) |
void | xxxDrawMenuItemText (PITEM pItem, HDC hdc, int xLeft, int yTop, LPWSTR lpsz, int cch, BOOL fShowUnderlines) |
void | xxxSendMenuDrawItemMessage (HDC hdc, UINT itemAction, PMENU pmenu, PITEM pItem, BOOL fBitmap, int iOffset) |
__inline UINT | CalcbfExtra (void) |
void | MNDrawInsertionBar (HDC hdc, PITEM pItem) |
void | xxxDrawMenuItem (HDC hdc, PMENU pMenu, PITEM pItem, DWORD dwFlags) |
void | SetupFakeMDIAppStuff (PMENU lpMenu, PITEM lpItem) |
BOOL CALLBACK | xxxRealDrawMenuItem (HDC hdc, PGRAYMENU pGray, int cx, int cy) |
int | xxxMenuBarDraw (PWND pwnd, HDC hdc, int cxFrame, int cyFrame) |
void | xxxMenuDraw (HDC hdc, PMENU pmenu) |
BOOL | xxxDrawMenuBar (PWND pwnd) |
PITEM | xxxMNInvertItem (PPOPUPMENU ppopupmenu, PMENU pmenu, int itemNumber, PWND pwndNotify, BOOL fOn) |
int | xxxDrawMenuBarTemp (PWND pwnd, HDC hdc, LPRECT lprc, PMENU pMenu, HFONT hfont) |
void | xxxDrawMenuBarUnderlines (PWND pwnd, BOOL fShow) |
|
Definition at line 19 of file mndraw.c. Referenced by xxxDrawMenuBarUnderlines(), and xxxDrawMenuItemText(). |
|
|
|
Definition at line 675 of file mndraw.c. Referenced by xxxMenuDraw().
|
|
Definition at line 409 of file mndraw.c. References BC_INVERT, BC_NOMIRROR, BltColor(), BOOL, tagOEMBITMAPINFO::cx, tagITEM::cxItem, tagOEMBITMAPINFO::cy, tagITEM::cyItem, dwFlags, DWORD, FALSE, ghdcMem2, gpDispInfo, gpsi, tagITEM::hbmpChecked, tagITEM::hbmpUnchecked, HDCBITS, tagDISPLAYINFO::hdcGray, NULL, OBI_MENUBULLET, OBI_MENUCHECK, SRCSTENCIL, TestMFS, TestMFT, TRUE, tagOEMBITMAPINFO::x, and tagOEMBITMAPINFO::y. Referenced by xxxRealDrawMenuItem().
|
|
Definition at line 290 of file mndraw.c. References _KillTimer(), _ReleaseDC(), CMS_QANIMATION, tagMENUSTATE::cxAni, tagMENUSTATE::cyAni, tagMENUSTATE::dwAniStartTime, DWORD, ExGetExclusiveWaiterCount(), ExGetSharedWaiterCount(), FADE_MENU, gcxMenuFontChar, gcyMenuFontChar, gpresUser, tagMENUSTATE::hdcWndAni, tagMENUSTATE::iAniDropDir, IDSYS_MNANIMATE, tagMENUSTATE::ixAni, tagMENUSTATE::iyAni, MNDestroyAnimationBitmap(), MultDiv, NtGetTickCount(), NULL, PAS_HORZ, PAS_LEFT, PAS_UP, PAS_VERT, tagMENUSTATE::pGlobalPopupMenu, tagPOPUPMENU::spwndActivePopup, StopFade(), TestFadeFlags(), TestWF, and WFVISIBLE. Referenced by MNGetPopupFromMenu(), xxxMenuWindowProc(), xxxMNCloseHierarchy(), xxxMNSelectItem(), and xxxTrackPopupMenuEx().
|
|
Definition at line 102 of file mndraw.c. References _GetDCEx(), _ReleaseDC(), BitBltSysBmp(), DrawFrameControl(), tagMENU::dwArrowsOn, DWORD, gcyMenuScrollArrow, gpsi, tagMENU::hbrBack, MFMWFP_UPARROW, MSA_ATBOTTOM, MSA_ATTOP, MSA_OFF, NULL, OBI_MENUARROWDOWN, OBI_MENUARROWUP, OBI_MENUCHECK, tagWND::rcWindow, tagPOPUPMENU::spmenu, tagPOPUPMENU::spwndPopupMenu, SYSMET, and TestMF. Referenced by MNDrawFullNC(), xxxMNInvertItem(), and xxxMNSetTop().
|
|
Definition at line 181 of file mndraw.c. References _GetDCEx(), _ReleaseDC(), DF_3DFACE, DrawEdge(), DrawFrame(), gcyMenuScrollArrow, tagMENU::hbrBack, InflateRect(), MFMWFP_DOWNARROW, MFMWFP_UPARROW, MNDrawArrow(), MNGetToppItem(), NULL, tagWND::rcWindow, tagPOPUPMENU::spmenu, SYSHBR, SYSMET, and tagITEM::yItem. Referenced by xxxMenuWindowProc(), and xxxMNSetTop().
|
|
Definition at line 39 of file mndraw.c. References BOOL, MNIsCachedBmpOnly(), and TestMFS. Referenced by xxxDrawMenuItem(), xxxMNInvertItem(), xxxRealDrawMenuItem(), and xxxSendMenuDrawItemMessage().
|
|
Definition at line 688 of file mndraw.c. References BOOL, tagITEM::cxItem, tagITEM::cyItem, SYSHBR, SYSMET, TestMFS, tagITEM::xItem, and tagITEM::yItem. Referenced by xxxDrawMenuItem(), and xxxMenuDraw().
|
|
Definition at line 52 of file mndraw.c. References BOOL, ClearMFS, tagITEM::cxItem, CXMENU3DEDGE, cy, tagITEM::cyItem, CYMENU3DEDGE, FALSE, tagITEM::hbmp, MFISPOPUP, SetMFS, SYSHBR, TestMF, TestMFS, TRUE, tagITEM::xItem, and tagITEM::yItem. Referenced by xxxDrawMenuItem().
|
|
Definition at line 235 of file mndraw.c. References BOOL, cy, tagMENU::dwArrowsOn, FALSE, gcyMenuScrollArrow, tagMENU::hbrBack, MFWINDOWDC, MNGetToppItem(), MNXBORDER, MNYBORDER, MSA_OFF, NULL, TestMF, TRUE, and tagITEM::yItem. Referenced by xxxMenuWindowProc(), and xxxMNInvertItem().
|
|
Definition at line 25 of file mndraw.c. References BOOL, tagITEM::lpstr, NULL, and TestMFS. Referenced by mnDrawHilite(), and xxxDrawMenuItem().
|
|
Definition at line 724 of file mnsys.c. References _GetMenuDefaultItem(), _SetCloseDefault(), tagITEM::dwItemData, FindFakeMDIChild(), HWq, L, tagITEM::spSubMenu, tagMENU::spwndNotify, TestWF, TRUE, and WFWIN40COMPAT. Referenced by xxxRealDrawMenuItem().
|
|
Definition at line 498 of file mndraw.c. References CALL_LPK, gcxMenuFontOverhang, gcyMenuFontAscent, LPK_INSTALLED, PpiCurrent, PtiCurrentShared, SYSMET, tagITEM::ulWidth, tagITEM::ulX, UNDERLINE_RECALC, and xxxClientGetTextExtentPointW(). Referenced by xxxDrawMenuBarUnderlines(), and xxxDrawMenuItemText().
|
|
Definition at line 1670 of file mndraw.c. References BOOL, CheckLock, TestwndChild, TRUE, and xxxRedrawFrame().
|
|
Definition at line 1972 of file mndraw.c. References CheckLock, tagMENU::cyMenu, FillRect(), gcxMenuFontChar, gcxMenuFontOverhang, gcyMenuFontAscent, gcyMenuFontChar, gcyMenuFontExternLeading, GetCharDimensions(), ghMenuFont, gSystemCPCharSet, HDCBITS, Lock, max, tagMENU::spwndNotify, SYSHBR, SYSMET, ThreadLock, ThreadUnlock, xxxMenuBarCompute(), and xxxMenuDraw(). Referenced by NtUserDrawMenuBarTemp().
|
|
Definition at line 2082 of file mndraw.c. References _GetDCEx(), _ReleaseDC(), ACCF_KEYBOARDPREF, CALL_LPK, tagITEM::cch, CheckLock, tagMENU::cItems, ClearMF, tagITEM::cxItem, tagITEM::cyItem, FALSE, gcxMenuFontChar, gcyMenuFontChar, gcyMenuFontExternLeading, GetAppCompatFlags2(), GetPrefixCount(), GetTopLevelWindow(), ghMenuFont, gpsi, tagMENU::hbrBack, tagITEM::lpstr, MENU_STRLEN, MFUNDERLINE, MNXSPACE, NULL, OBI_MENUCHECK, PtiCurrentShared, tagMENU::rgItems, SetMF, tagWND::spmenu, SYSHBR, SYSMET, SYSRGB, TEST_BOOL_ACCF, TestEffectInvertUP, TestMF, TestMFS, TestMFT, TestWF, TextPointer, ThreadLock, ThreadLockPool, ThreadUnlock, ThreadUnlockAndFreePool, VER40, WFMPRESENT, tagITEM::xItem, xxxDrawItemUnderline(), xxxPSMGetTextExtent(), xxxPSMTextOut(), xxxSendMenuDrawItemMessage(), and tagITEM::yItem. Referenced by xxxDefWindowProc(), and xxxEndMenuLoop().
|
|
Definition at line 750 of file mndraw.c. References BC_INVERT, BltColor(), BOOL, CheckLock, tagOEMBITMAPINFO::cx, tagITEM::cxItem, tagOEMBITMAPINFO::cy, tagITEM::cyItem, DMI_INVERT, dwFlags, FALSE, gcxMenuFontChar, ghMenuFontDef, gpsi, tagMENU::hbrBack, HDCBITS, INT, max, MFINACTIVE, MFISPOPUP, mnDrawHilite(), MNDrawInsertionBar(), MNDrawMenu3DHotTracking(), MNIsCachedBmpOnly(), NULL, OBI_MENUARROW, OBI_MENUARROW_L, PGRAYMENU, GRAYMENU::pItem, GRAYMENU::pMenu, tagITEM::spSubMenu, SYSHBR, SYSHBRUSH, SYSMET, SYSRGB, TestMF, TestMFS, TestMFT, UINT, tagOEMBITMAPINFO::x, tagITEM::xItem, xxxDrawState(), xxxSendMenuDrawItemMessage(), tagOEMBITMAPINFO::y, and tagITEM::yItem. Referenced by xxxHotTrackMenu(), xxxMenuDraw(), and xxxMNInvertItem().
|
|
Definition at line 565 of file mndraw.c. References ACCF_KEYBOARDPREF, CALL_LPK, GetAppCompatFlags2(), GetPrefixCount(), MENU_STRLEN, NULL, PtiCurrentShared, TEST_BOOL_ACCF, TestEffectInvertUP, ThreadLockPool, ThreadUnlockAndFreePool, VER40, xxxClientExtTextOutW(), xxxDrawItemUnderline(), and xxxPSMTextOut(). Referenced by xxxRealDrawMenuItem().
|
|
Definition at line 1373 of file mndraw.c. References BOOL, CheckLock, ClearMF, CreateEmptyRgn(), tagMENU::cxMenu, tagMENU::cyMenu, FALSE, GetAppCompatFlags2(), GetCaptionHeight(), gpDispInfo, tagMENU::hbrBack, tagDISPLAYINFO::hDev, MFINACTIVE, NULL, tagWND::rcWindow, SetMF, tagWND::spmenu, tagMENU::spwndNotify, SYSHBR, SYSMET, TestWF, TestwndFrameOn, ThreadLock, ThreadUnlock, TRUE, UINT, VER40, WEFEDGEMASK, WFOLDUI, xxxMenuBarCompute(), and xxxMenuDraw(). Referenced by xxxDrawWindowFrame(), and xxxDWP_DoNCActivate().
|
|
Definition at line 1534 of file mndraw.c. References CalcbfExtra(), CheckLock, tagMENU::cItems, tagITEM::cxItem, cy, tagITEM::cyItem, tagMENU::cyMenu, DrawEdge(), tagMENU::dwArrowsOn, tagTHREADINFO::dwExpWinVer, ghMenuFont, GreGetTextAlign(), GreSetTextAlign(), tagMENU::hbrBack, tagMENU::iTop, MFISPOPUP, MNDrawInsertionBar(), MNGetToppItem(), MSA_OFF, NULL, PtiCurrent, tagMENU::rgItems, SYSMET, TestMF, TestMFT, UINT, VER40, tagITEM::xItem, xxxDrawMenuItem(), and tagITEM::yItem. Referenced by xxxDrawMenuBarTemp(), xxxMenuBarDraw(), and xxxMenuWindowProc().
|
|
Definition at line 1697 of file mndraw.c. References _GetDC(), _GetWindowDC(), _ReleaseDC(), BOOL, CheckLock, tagMENU::cItems, ClearMFS, CreateEmptyRgn(), tagITEM::cxItem, tagITEM::cyItem, tagMENU::cyMenu, DMI_INVERT, tagMENU::dwArrowsOn, FALSE, ghMenuFont, gpDispInfo, GreGetTextAlign(), GreSetTextAlign(), tagITEM::hbmp, tagMENU::hbrBack, tagDISPLAYINFO::hDev, tagMENU::iTop, MFISPOPUP, MFMWFP_DOWNARROW, MFMWFP_UPARROW, MNDrawArrow(), mnDrawHilite(), MNEraseBackground(), MNGetToppItem(), MNPositionSysMenu(), MSA_OFF, NULL, tagWND::rcWindow, tagMENU::rgItems, SetMFS, tagPOPUPMENU::spwndPopupMenu, SYSMET, TestMF, TestMFS, TestMFT, TestWF, ThreadLock, ThreadUnlock, TRUE, UINT, WFMINIMIZED, WFSIZEBOX, tagITEM::xItem, xxxDrawMenuItem(), xxxGetSysMenuHandle(), xxxMNSetTop(), xxxSendMenuSelect(), xxxUpdateWindow(), and tagITEM::yItem. Referenced by xxxHiliteMenuItem(), and xxxMNSelectItem().
|
|
Definition at line 954 of file mndraw.c. References _DrawIconEx(), BC_INVERT, BitBltSysBmp(), BltColor(), BOOL, tagITEM::cch, CH_HELPPREFIX, CheckLock, tagMENU::cItems, tagOEMBITMAPINFO::cx, tagITEM::cxBmp, tagITEM::cxItem, CXMENU3DEDGE, tagMENU::cxTextAlign, cy, tagOEMBITMAPINFO::cy, tagITEM::cyBmp, tagITEM::cyItem, CYMENU3DEDGE, DOBI_PUSHED, DrawMenuItemCheckMark(), tagTHREADINFO::dwExpWinVer, tagITEM::dwItemData, tagITEM::dxTab, FALSE, FindCharPosition(), gcxMenuFontChar, gcyMenuFontChar, gcyMenuFontExternLeading, ghdcMem2, gpsi, tagITEM::hbmp, HDCBITS, HMValidateHandleNoRip(), INT, tagITEM::lpstr, max, MFISPOPUP, MFUNDERLINE, mnDrawHilite(), MNLEFTMARGIN, MNXSPACE, NULL, OBI_CLOSE_MBAR, OBI_CLOSE_MBAR_I, OBI_COUNT, OBI_MENUARROW, OBI_MENUARROW_L, OBI_MENUCHECK, OBI_POPUPFIRST, OBI_REDUCE_MBAR, OBI_REDUCE_MBAR_I, OBI_RESTORE_MBAR, PICON, GRAYMENU::pItem, GRAYMENU::pMenu, PtiCurrent, tagMENU::rgItems, SetupFakeMDIAppStuff(), tagITEM::spSubMenu, SRCSTENCIL, SYSHBR, SYSICO, SYSMET, TestMF, TestMFS, TestMFT, TextPointer, ThreadLock, ThreadUnlock, TRUE, TYPE_WINDOW, UINT, VER40, tagOEMBITMAPINFO::x, xxxDrawMenuItemText(), xxxGetWindowSmIcon(), xxxPSMGetTextExtent(), xxxPSMTextOut(), xxxSendMenuDrawItemMessage(), and tagOEMBITMAPINFO::y. Referenced by xxxDrawState().
|
|
Definition at line 617 of file mndraw.c. References CheckLock, tagITEM::cxBmp, tagITEM::cxItem, tagITEM::cyBmp, tagITEM::cyItem, tagITEM::dwItemData, tagITEM::fState, MFINACTIVE, MFUNDERLINE, mnDrawHilite(), NULL, PtoH, tagMENU::spwndNotify, TestMF, ThreadLockAlways, ThreadUnlock, tagITEM::wID, tagITEM::xItem, xxxSendMessage(), and tagITEM::yItem. Referenced by xxxDrawMenuBarUnderlines(), xxxDrawMenuItem(), and xxxRealDrawMenuItem().
|