ExtPaintManager.h
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:273k
- LPARAM lParam = 0L
- );
-
- virtual void PaintTabbedTabClientArea(
- CDC & dc,
- CRect & rcClient,
- CRect & rcTabItemsArea,
- CRect & rcTabNearBorderArea,
- DWORD dwOrientation,
- bool bGroupedMode,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
-
- virtual void PaintTabButton(
- CDC & dc,
- CRect & rcButton,
- LONG nHitTest,
- bool bTopLeft,
- bool bHorz,
- bool bEnabled,
- bool bHover,
- bool bPushed,
- bool bGroupedMode,
- CObject * pHelperSrc,
- LPARAM lParam = 0L,
- bool bFlat = false
- );
- virtual void PaintTabNcAreaRect(
- CDC & dc,
- const RECT & rc,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
-
- virtual void TabWnd_MeasureItemAreaMargins(
- CExtTabWnd * pTabWnd,
- LONG & nSpaceBefore,
- LONG & nSpaceAfter,
- LONG & nSpaceOver
- );
-
- virtual void TabWnd_UpdateItemMeasure(
- CExtTabWnd * pTabWnd,
- CExtTabWnd::TAB_ITEM_INFO * pTii,
- CDC & dcMeasure,
- CSize & sizePreCalc
- );
- virtual bool TabWnd_GetParentSizingMargin(
- INT & nMargin,
- DWORD dwOrientation,
- CExtTabWnd * pTabWnd
- ) const;
- virtual void TabWnd_AdjustItemCloseButtonRect(
- CRect & rcCloseButton,
- CExtTabWnd * pTabWnd
- );
- #endif // #if (!defined __EXT_MFC_NO_TAB_CTRL)
- virtual void PaintResizableBarChildNcAreaRect(
- CDC & dc,
- const RECT & rc,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- static CRect stat_CalcTextDimension(
- CDC & dc,
- CFont & font,
- const CExtSafeString & strText,
- UINT uFlags = DT_SINGLELINE|DT_LEFT|DT_CALCRECT
- );
- static int stat_CalcTextWidth(
- CDC & dc,
- CFont & font,
- const CExtSafeString & strText
- );
- // paint methods
- virtual void PaintIcon(
- CDC & dc,
- bool bHorz,
- CExtCmdIcon * pIcon,
- const CRect & rcClient,
- bool bPushed,
- bool bEnabled,
- bool bHover = false,
- INT nIconAlignment = 0,
- bool bRTL = false,
- CRect * prcIcon = NULL,
- CRect * prcText = NULL,
- CRect * prcIconMargins = NULL,
- COLORREF clrCustomAccentEffectForIcon = COLORREF(-1L)
- );
- CExtBitmap m_bmpFilterApplied, m_bmpFilterUnApplied;
- enum e_docking_caption_button_t
- {
- __DCBT_EMPTY = 0,
- __DCBT_CLOSE = 1,
- __DCBT_ARROW_UP = 2,
- __DCBT_ARROW_DOWN = 3,
- __DCBT_ARROW_LEFT = 4,
- __DCBT_ARROW_RIGHT = 5,
- __DCBT_WND_MINIMIZE = 6,
- __DCBT_WND_RESTORE = 7,
- __DCBT_WND_MAXIMIZE = 8,
- __DCBT_WND_CONTEXTHELP = 9,
- __DCBT_WND_KEEP = 10,
- __DCBT_WND_UNKEEP = 11,
- __DCBT_ARROW_UP_L = 12,
- __DCBT_ARROW_DOWN_L = 13,
- __DCBT_ARROW_LEFT_L = 14,
- __DCBT_ARROW_RIGHT_L = 15,
- __DCBT_XP_THIN_CLOSE = 16,
- __DCBT_HOLLOW_UP = 17,
- __DCBT_HOLLOW_DOWN = 18,
- __DCBT_HOLLOW_LEFT = 19,
- __DCBT_HOLLOW_RIGHT = 20,
- __DCBT_CLOSE_DC2K = 21,
- __DCBT_HOLLOW_PLUS = 22,
- __DCBT_HOLLOW_MINUS = 23,
- __DCBT_TREE_PLUS = 24,
- __DCBT_TREE_MINUS = 25,
- __DCBT_CIRCLE_PLUS = 26,
- __DCBT_CIRCLE_MINUS = 27,
- __DCBT_ARROW_PT_UP = 28,
- __DCBT_ARROW_PT_DOWN = 29,
- __DCBT_ARROW_PT_LEFT = 30,
- __DCBT_ARROW_PT_RIGHT = 31,
- __DCBT_ARROW_PT_LT = 32,
- __DCBT_ARROW_PT_RT = 33,
- __DCBT_ARROW_PT_RB = 34,
- __DCBT_ARROW_PT_LB = 35,
- __DCBT_ARROW_SMALL_UP = 36,
- __DCBT_ARROW_SMALL_DOWN = 37,
- __DCBT_ARROW_SMALL_LEFT = 38,
- __DCBT_ARROW_SMALL_RIGHT = 39,
- __DCBT_ELLIPSIS = 40,
- __DCBT_ARROW_SORT_UP = 41,
- __DCBT_ARROW_SORT_DOWN = 42,
- __DCBT_ARROW_SORT_LEFT = 43,
- __DCBT_ARROW_SORT_RIGHT = 44,
- __DCBT_TABS_LIST_ARROW = 45,
- __DCBT_PN_CONFIG_BUTTON = 46,
- __DCBT_PN_CONFIG_BUTTON_2007 = 47,
- __DCBT_PN_CAPTION_EXPANDED = 48,
- __DCBT_PN_CAPTION_COLLAPSED = 49,
- __DCBT_TREE_PLUS_FILLED = 50,
- __DCBT_TREE_MINUS_FILLED = 51,
- __DCBT_SCROLL_TOP = 52,
- __DCBT_SCROLL_LEFT = 53,
- __DCBT_SCROLL_BOTTOM = 54,
- __DCBT_SCROLL_RIGHT = 55,
- __DCBT_2007_ARROW_SORT_UP = 56,
- __DCBT_2007_ARROW_SORT_DOWN = 57,
- __DCBT_2007_ARROW_SORT_LEFT = 58,
- __DCBT_2007_ARROW_SORT_RIGHT = 59,
- __DCBT_VALUE_MIN = 0,
- __DCBT_VALUE_MAX = 59,
- };
-
- static glyph_t * g_DockingCaptionGlyphs[__DCBT_VALUE_MAX+1];
- struct __PROF_UIS_API PAINTDOCKINGCAPTIONBUTTONDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CRect m_rcClient;
- int m_eType; // CExtPaintManager::e_docking_caption_button_t
- bool m_bHover:1;
- bool m_bPushed:1;
- bool m_bEnabled:1;
- bool m_bSideBar:1;
- bool m_bBarWndActive:1;
- bool m_bFloating:1;
- PAINTDOCKINGCAPTIONBUTTONDATA();
- PAINTDOCKINGCAPTIONBUTTONDATA(
- CObject * pHelperSrc,
- const RECT & rcClient,
- int eType, // CExtPaintManager::e_docking_caption_button_t
- bool bHover,
- bool bPushed,
- bool bEnabled,
- bool bSideBar,
- bool bBarWndActive,
- bool bFloating
- );
- }; // struct PAINTDOCKINGCAPTIONBUTTONDATA
- virtual void PaintDockingCaptionButton(
- CDC & dc,
- CExtPaintManager::PAINTDOCKINGCAPTIONBUTTONDATA & _pdcbd
- );
- virtual void PaintSysCmdGlyph(
- CDC & dc,
- UINT nHelperSysCmdID,
- const RECT & rcItem,
- bool bHover,
- bool bPushed,
- bool bEnabled,
- COLORREF clrForceGlyphColor = COLORREF(-1L)
- );
- struct __PROF_UIS_API PAINTPUSHBUTTONDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CRect m_rcClient;
- __EXT_MFC_SAFE_LPCTSTR m_sText;
- CExtCmdIcon * m_pIcon;
- HFONT m_hFont;
- UINT m_nHelperSysCmdID;
- INT m_nTextAlignment;
- INT m_nIconAlignment;
- CRect m_rcBorderSizes;
- CRect m_rcIconMargins;
- CRect m_rcTextMargins;
- INT m_nFocusMode;
- bool m_bHorz:1;
- bool m_bFlat:1;
- bool m_bHover:1;
- bool m_bPushed:1;
- bool m_bChecked:1;
- bool m_bIndeterminate:1;
- bool m_bEnabled:1;
- bool m_bDrawBorder:1;
- bool m_bDrawFocusRect:1;
- bool m_bDefaultPushButton:1;
- bool m_bDropDown:1;
- bool m_bTransparentBackground:1;
- bool m_bSeparatedDropDown:1;
- bool m_bNoDropDownArrow:1;
- bool m_bPushedDropDown:1;
- bool m_bHoverDropDown:1;
- bool m_bHelperColorCellButton:1;
- // text properties
- bool m_bWordBreak:1;
- // custom colors
- COLORREF m_clrForceTextDisabled, m_clrForceTextNormal,
- m_clrForceTextHover, m_clrForceTextPressed,
- m_clrCustomAccentEffectForIcon;
- COLORREF m_clrForceBk;
- UINT m_nDrawTextFlagsH;
- bool m_bForceUseDrawTextApiH:1;
- bool m_bForceRtlLayout:1;
- bool m_bForceRtlText:1;
- PAINTPUSHBUTTONDATA();
- PAINTPUSHBUTTONDATA(
- CObject * pHelperSrc,
- bool bHorz,
- const RECT & rcClient,
- __EXT_MFC_SAFE_LPCTSTR sText,
- CExtCmdIcon * pIcon,
- bool bFlat,
- bool bHover,
- bool bPushed,
- bool bIndeterminate,
- bool bEnabled,
- bool bDrawBorder,
- bool bDrawFocusRect,
- bool bDefaultPushButton,
- int eAlign,
- HFONT hFont = NULL,
- bool bDropDown = false,
- UINT nHelperSysCmdID = 0,
- bool bTransparentBackground = false
- );
- bool IsRTL();
- }; // struct PAINTPUSHBUTTONDATA
- virtual void PaintPushButton(
- CDC & dc,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- );
- virtual void PaintPushButtonMdiRight(
- CDC & dc,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- );
- virtual void PaintPushButtonText(
- CDC & dc,
- CRect & rcCaption,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- );
- virtual void PaintPushButtonIcon(
- CDC & dc,
- CRect & rcClient,
- CRect & rcCaption,
- CRect & rcFocus,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- );
- enum eBoxState_t
- {
- BOX_UNCHECKED = 0, // unchecked state (check, radio)
- BOX_CHECKED = 1, // checked state (check, radio)
- BOX_INDETERMINATE = 2, // indeterminate state (check)
-
- BOX_LDOWN_UNCHECKED = 3, // mouse down in unchecked state (check, radio)
- BOX_LDOWN_CHECKED = 4, // mouse down in checked state (check, radio)
- BOX_LDOWN_INDETERMINATE = 5, // mouse down in indeterminate state (check)
-
- BOX_MOUSE_HOVER_UNCHECKED = 6, // mouse hover in unchecked state (check, radio)
- BOX_MOUSE_HOVER_CHECKED = 7, // mouse hover in checked state (check, radio)
- BOX_MOUSE_HOVER_INDETERMINATE = 8, // mouse hover in indeterminate state (check)
-
- BOX_DISABLED_UNCHECKED = 9, // disabled in unchecked state (check, radio)
- BOX_DISABLED_CHECKED = 10,// disabled in checked state (check, radio)
- BOX_DISABLED_INDETERMINATE = 11 // disabled in indeterminate state (check)
- }; // enum eBoxState_t
- struct __PROF_UIS_API PAINTCHECKRADIOBUTTONDATA
- {
- eBoxState_t m_eState;
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CRect m_rcClient;
- __EXT_MFC_SAFE_LPCTSTR m_sText;
- HFONT m_hFont;
-
- INT m_nTextAlignment;
- CRect m_rcTextMargins;
- bool m_bLeftText:1;
- bool m_bMultiline:1;
- bool m_bHover:1;
- bool m_bPushed:1;
- bool m_bEnabled:1;
- bool m_bDrawFocusRect:1;
- bool m_bTransparentBackground:1;
- COLORREF m_clrForceTextDisabled;
- COLORREF m_clrForceTextNormal;
- COLORREF m_clrForceTextHover;
- COLORREF m_clrForceTextPressed;
- COLORREF m_clrForceBk;
- CRect m_rcBox;
- PAINTCHECKRADIOBUTTONDATA();
- PAINTCHECKRADIOBUTTONDATA(
- CObject * pHelperSrc,
- eBoxState_t eState,
- bool bLeftText,
- bool bMultiline,
- const RECT & rcClient,
- __EXT_MFC_SAFE_LPCTSTR sText,
- bool bHover,
- bool bPushed,
- bool bEnabled,
- bool bDrawFocusRect,
- INT eAlign,
- HFONT hFont = NULL,
- bool bTransparentBackground = false
- );
- }; // struct PAINTCHECKRADIOBUTTONDATA
- virtual CSize GetCheckButtonBoxSize(
- CDC & dc,
- CExtPaintManager::PAINTCHECKRADIOBUTTONDATA & _pcbd
- ) const;
- virtual CSize GetRadioButtonBoxSize(
- CDC & dc,
- CExtPaintManager::PAINTCHECKRADIOBUTTONDATA & _pcbd
- ) const;
- virtual void PaintCheckOrRadioButtonText(
- CDC & dc,
- CExtPaintManager::PAINTCHECKRADIOBUTTONDATA & _pcbd,
- CSize _sizeBox,
- CRect & rcBoxLocation
- );
- virtual void PaintCheckButtonBox(
- CDC & dc,
- CExtPaintManager::PAINTCHECKRADIOBUTTONDATA & _pcbd
- );
- virtual void PaintRadioButtonBox(
- CDC & dc,
- CExtPaintManager::PAINTCHECKRADIOBUTTONDATA & _pcbd
- );
- virtual void PaintCheckButton(
- CDC & dc,
- CExtPaintManager::PAINTCHECKRADIOBUTTONDATA & _pcbd
- );
- virtual void PaintRadioButton(
- CDC & dc,
- CExtPaintManager::PAINTCHECKRADIOBUTTONDATA & _pcbd
- );
- virtual CSize GetDropDividerMerics();
- virtual void PaintDropDivider(
- CDC & dc,
- const RECT & rcItem,
- bool bBefore,
- bool bHorz
- );
- virtual void PaintDragSourceRect(
- CDC & dc,
- const RECT & rcItem
- );
- struct __PROF_UIS_API PAINTMENUITEMDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CRect m_rcItem;
- CRect m_rcItemWithIndents;
- INT m_nIconAreaWidth;
- __EXT_MFC_SAFE_LPCTSTR m_sText, m_sAccelText, m_sExtendedText;
- CExtCmdIcon * m_pIcon;
- UINT m_nHelperSysCmdID; // for painting system menu glyphs
- HFONT m_hCustomFont;
- bool m_bPopup:1;
- bool m_bSelected:1;
- bool m_bPushedCheck:1;
- bool m_bPushedRadio:1;
- bool m_bIndeterminate:1;
- bool m_bEnabled:1;
- bool m_bRarelyUsed:1;
- bool m_bRarelyUsedPrev:1;
- bool m_bRarelyUsedNext:1;
- bool m_bForceNoLeftGradient:1;
- bool m_bCustomizeListMode:1;
- bool m_bSeparatedDropDown:1;
- bool m_bXtraMark:1;
- bool m_bXtraChecked:1;
- bool m_bBigAccent:1;
- CRect m_rcInPlaceWnd;
- CExtSafeString m_strInPlaceText;
- bool m_bHelperPopupDropped:1;
- COLORREF m_clrCustomAccentEffectForIcon;
- COLORREF m_clrForceMenuText;
- PAINTMENUITEMDATA();
- PAINTMENUITEMDATA(
- CObject * pHelperSrc,
- const RECT & rcItem,
- const RECT & rcItemWithIndents,
- INT nIconAreaWidth,
- __EXT_MFC_SAFE_LPCTSTR sText,
- __EXT_MFC_SAFE_LPCTSTR sAccelText,
- CExtCmdIcon * pIcon,
- bool bPopup,
- bool bSelected,
- bool bPushedCheck,
- bool bPushedRadio,
- bool bIndeterminate,
- bool bEnabled,
- bool bRarelyUsed,
- bool bRarelyUsedPrev,
- bool bRarelyUsedNext,
- UINT nHelperSysCmdID, // for painting system menu glyphs
- HFONT hCustomFont
- );
- }; // struct PAINTMENUITEMDATA
- virtual int TearOff_GetCaptionHeight() const;
- virtual void TearOff_GetCaptionPaint(
- CDC & dc,
- const RECT & rectItem,
- bool bHover,
- bool bPressed,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintMenuItem(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid
- );
- virtual void PaintMenuItemIcon(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid
- );
- virtual void PaintMenuItemInPlaceWnd(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid
- );
- virtual void PaintMenuSeparator(
- CDC & dc,
- const RECT & rectItem,
- int nIconAreaWidth,
- bool bRarelyUsed,
- bool bIsForceNoLeftGradient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintSeparator(
- CDC & dc,
- const RECT & rectItem,
- bool bHorz,
- bool bTransparentBk,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- struct __PROF_UIS_API PAINTGRIPPERDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- const CRect m_rcGripper, m_rcText;
- bool m_bActive:1;
- bool m_bFloating:1;
- bool m_bHorz:1;
- bool m_bSideBar:1;
- __EXT_MFC_SAFE_LPCTSTR m_sCaption;
- bool m_bHelperNoRect:1;
- bool m_bHelperNoFill:1;
- bool m_bForceRTL:1;
- bool m_bFlashCaptionHighlightedState:1;
- COLORREF m_clrFlashCaptionText, m_clrFlashCaptionBackground;
- PAINTGRIPPERDATA();
- PAINTGRIPPERDATA(
- CObject * pHelperSrc,
- const RECT & rcGripper,
- const RECT & rcText,
- bool bActive,
- bool bFloating,
- bool bHorz,
- bool bSideBar = false,
- __EXT_MFC_SAFE_LPCTSTR sCaption = NULL,
- bool bForceRTL = false
- );
- }; // struct PAINTGRIPPERDATA
- virtual void PaintGripper(
- CDC & dc,
- CExtPaintManager::PAINTGRIPPERDATA & _pgd
- );
- struct __PROF_UIS_API PAINTDOCKINGFRAMEDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CRect m_rcWindow;
- CRect m_rcClient;
- bool m_bActive:1;
- bool m_bFloating:1;
- bool m_bExtBar:1;
- bool m_bSideBar:1;
- PAINTDOCKINGFRAMEDATA();
- PAINTDOCKINGFRAMEDATA(
- CObject * pHelperSrc,
- const RECT & rcWindow,
- const RECT & rcClient,
- bool bActive,
- bool bFloating,
- bool bExtBar,
- bool bSideBar = false
- );
- }; // struct PAINTDOCKINGFRAMEDATA
- virtual void PaintDockingFrame(
- CDC & dc,
- CExtPaintManager::PAINTDOCKINGFRAMEDATA & _pdfd
- );
- struct __PROF_UIS_API PAINTCONTROLFRAMEDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CRect m_rcClient;
- bool m_bFlat:1;
- bool m_bHover:1;
- bool m_bEnabled:1;
- bool m_bFocus:1;
- bool m_bReadOnly:1;
- PAINTCONTROLFRAMEDATA();
- PAINTCONTROLFRAMEDATA(
- CObject * pHelperSrc,
- const RECT & rcClient,
- bool bFlat,
- bool bHover,
- bool bEnabled,
- bool bFocus,
- bool bReadOnly
- );
- }; // struct PAINTCONTROLFRAMEDATA
- virtual void PaintControlFrame(
- CDC & dc,
- CExtPaintManager::PAINTCONTROLFRAMEDATA & _pcfd
- );
- struct __PROF_UIS_API PAINTCOMBOFRAMEDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CRect m_rcClient;
- bool m_bHover:1;
- bool m_bPushed:1;
- bool m_bEnabled:1;
- COLORREF
- m_clrForceNABorder,
- m_clrForceNAContent,
- m_clrForceActiveOuterBorder
- ;
- bool m_bNoTopOuterBorder:1;
- bool m_bRightText:1;
- PAINTCOMBOFRAMEDATA();
- PAINTCOMBOFRAMEDATA(
- CObject * pHelperSrc,
- const RECT & rcClient,
- bool bHover,
- bool bPushed,
- bool bEnabled,
- bool bRightText = false
- );
- }; // struct PAINTCOMBOFRAMEDATA
- virtual void PaintComboFrame(
- CDC & dc,
- CExtPaintManager::PAINTCOMBOFRAMEDATA & _pcfd
- );
- static HICON stat_GenerateColorIconBox(
- COLORREF clrIcon
- );
- static HICON stat_GenerateColorIconChar(
- COLORREF clrIcon,
- HFONT hFontForLetter,
- __EXT_MFC_SAFE_TCHAR tChr
- );
- static HICON stat_GenerateColorIconChar(
- COLORREF clrIcon,
- HFONT hFontForLetter
- );
- static HICON stat_GenerateColorIconFrame(
- COLORREF clrIcon
- );
- static bool stat_DefIsHwndNeedsDirectRepaint(
- HWND hWndChild
- );
- static bool stat_DefExcludeChildAreaCallback(
- HDC hDC,
- HWND hWnd,
- HWND hWndChild,
- LPVOID pCookie
- );
- static int stat_GetBPP();
- virtual INT GetDropDownButtonWidth(
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- ) const;
- virtual INT GetSpinButtonWidth(
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- ) const;
- virtual CRect GetSpinButtonMargins(
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- ) const;
- CSize GetTextSizes(bool bBold = false);
- virtual int GetTextHeight(bool bHorz);
- virtual int GetTipShadowSize() const;
- virtual int GetMenuShadowSize() const;
- virtual int GetMenuIconAreaWidth() const;
- virtual CRect GetMenuBorderMetrics(
- CWnd * pWnd,
- LPARAM lParam = 0
- ) const;
- virtual void MenuBottomResizingMarginGetInfo(
- INT & nMarginHeight,
- INT & nResizingCornerPartWidth,
- CExtPopupMenuWnd * pPopup,
- LPARAM lParam = 0L
- );
- virtual void MenuBottomResizingMarginPaint(
- CDC & dc,
- const RECT & rcResizingArea,
- CExtPopupMenuWnd * pPopup,
- LPARAM lParam = 0L
- );
- virtual CFont * MenuCaptionGetFont(
- CExtPopupMenuWnd * pPopup,
- LPARAM lParam = 0L
- ) const;
- virtual CSize MenuCaption_Measure(
- CDC & dc,
- __EXT_MFC_SAFE_LPCTSTR sMenuCaptionText,
- CExtPopupMenuWnd * pPopup,
- LPARAM lParam = 0L
- ) const;
- virtual void MenuCaption_Paint(
- CDC & dc,
- const RECT & rcMenuCaption,
- __EXT_MFC_SAFE_LPCTSTR sMenuCaptionText,
- CExtPopupMenuWnd * pPopup,
- LPARAM lParam = 0L
- ) const;
- virtual void PaintMenuBorder(
- CDC & dc,
- const RECT & rectClient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void AdjustMenuDC(
- CExtPopupMenuWnd * pPopup,
- CDC & dc,
- bool bMemoryDC,
- LPARAM lParam = 0L
- );
- virtual bool IsMenuMustCombineExcludeArea(
- const CObject * pMenuTrackerObject = NULL
- ) const;
- virtual bool IsToolBarChevronMenuCombined();
- virtual void PaintMenuCombinedArea(
- CDC & dc,
- const RECT & rcArea,
- const RECT & rcClient,
- int eCombineAlign, // CExtPopupMenuWnd::e_combine_align_t values
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- enum e_control_bar_border_type_t
- {
- __CB_OUTER_DOCKBAR = 0,
- __CB_OUTER_STATUSBAR = 1,
- __CB_INNER_STATUSBAR_ITEM = 2,
- };
- struct __PROF_UIS_API PAINTCONTROLBARBORDERSDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- int m_eCBBT; // CExtPaintManager::e_control_bar_border_type_t
- DWORD m_dwStyle;
- CRect m_rc;
- PAINTCONTROLBARBORDERSDATA();
- PAINTCONTROLBARBORDERSDATA(
- CObject * pHelperSrc,
- int eCBBT, // CExtPaintManager::e_control_bar_border_type_t
- DWORD dwStyle,
- const RECT & rc
- );
- }; // struct PAINTCONTROLBARBORDERSDATA
-
- void PaintControlBarBordersDefImpl(
- CDC & dc,
- CExtPaintManager::PAINTCONTROLBARBORDERSDATA & _pcbbd,
- COLORREF clrHi,
- COLORREF clrLo
- );
- virtual void PaintControlBarBorders(
- CDC & dc,
- CExtPaintManager::PAINTCONTROLBARBORDERSDATA & _pcbbd
- );
- virtual int GetThemeDockingType() const;
- #if (!defined __EXT_MFC_NO_TAB_CONTROLBARS)
- virtual int GetAutoHideTabsType() const;
- #endif // (!defined __EXT_MFC_NO_TAB_CONTROLBARS)
- struct __PROF_UIS_API PAINTINHERITEDBACKGROUNDDATA
- {
- bool m_bClientMapping:1,
- m_bBackgroundDrawn:1,
- m_bSequenceCanceled:1;
- HWND m_hWndBackgroundRequestPainter;
- CDC & m_dc;
- CWnd * m_pWnd;
- CObject * m_pObjHelperSrc;
- LPARAM m_lParam;
- PAINTINHERITEDBACKGROUNDDATA(
- bool bClientMapping,
- CDC & dc,
- CWnd * pWnd,
- CObject * pObjHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- PAINTINHERITEDBACKGROUNDDATA(
- bool bClientMapping,
- CDC & dc,
- CObject * pObjHelperSrc,
- LPARAM lParam = 0L
- );
- bool Notify();
- operator WPARAM() const;
- static PAINTINHERITEDBACKGROUNDDATA * FromWPARAM( WPARAM wParam );
- CRect GetRenderingRect() const;
- }; // struct PAINTINHERITEDBACKGROUNDDATA
- virtual bool RenderCustomBackground(
- bool bClientMapping,
- CDC & dc,
- CObject * pObjHelperSrc,
- LPARAM lParam = 0L
- ) const;
- static UINT g_nMsgPaintInheritedBackground;
- bool m_bCustomBackgroundInheritanceEnabled:1;
- virtual bool IsCustomBackgroundInheritanceEnabled() const;
- virtual bool GetCustomBackgroundInheritanceMode(
- CObject * pObjHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual bool GetCb2DbTransparentMode(
- CObject * pObjHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool PaintDockerBkgnd(
- bool bClientMapping,
- CDC & dc,
- CWnd * pWnd,
- LPARAM lParam = NULL
- );
- virtual bool PaintDockerBkgnd(
- bool bClientMapping,
- CDC & dc,
- const CRect &rcDst,
- const CRect &rcWnd,
- LPARAM lParam = NULL
- );
- virtual bool PaintDocumentClientAreaBkgnd(
- CDC & dc,
- CWnd * pWnd,
- LPARAM lParam = NULL
- );
- virtual void PaintControlBarClientArea(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintDockBarClientArea(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #if (!defined __EXT_MFC_NO_SHORTCUTLIST_CTRL)
- bool m_bShortcutListUseButtonStyleInScrollButtons:1;
- bool m_bShortcutListUseDockerBkgnd:1;
- bool m_bShortcutListItemUseButtonStyle:1;
- COLORREF m_clrShortcutListItemAlternativeText;
- virtual void PaintShortcutListBkgnd(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintShortcutListScrollButton(
- CDC & dc,
- bool bHorzLayout,
- const RECT & rcButton,
- bool bUpOrLeftBtn,
- bool bHover,
- bool bPressed,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- struct __PROF_UIS_API PAINTSHORTCUTLISTITEMSDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- CExtCmdIcon * m_pIconBig, * m_pIconSmall;
- LPARAM m_lParamItem;
- CRect m_rcBoundsAll, m_rcBoundsIcon, m_rcBoundsText,
- m_rcCtrlClient;
- CExtSafeString m_sText;
- bool m_bHover:1, m_bPressed:1, m_bVisible:1,
- m_bChecked:1, m_bExpandMode:1, m_bHorzLayout:1,
- m_bBigIconView:1, m_bEraseQuery:1;
- DWORD m_dwShortcutListStyle;
- HFONT m_hItemTextFont;
- PAINTSHORTCUTLISTITEMSDATA();
- PAINTSHORTCUTLISTITEMSDATA(
- CObject * pHelperSrc,
- DWORD dwShortcutListStyle,
- HFONT hItemTextFont,
- CExtCmdIcon * pIconBig,
- CExtCmdIcon * pIconSmall,
- LPARAM lParamItem,
- const RECT & rcBoundsAll,
- const RECT & rcBoundsIcon,
- const RECT & rcBoundsText,
- const RECT & rcCtrlClient,
- __EXT_MFC_SAFE_LPCTSTR sText,
- bool bHover,
- bool bPressed,
- bool bVisible,
- bool bChecked,
- bool bExpandMode,
- bool bHorzLayout,
- bool BigIconView,
- bool bEraseQuery
- );
- }; // struct PAINTSHORTCUTLISTITEMSDATA
- virtual void PaintShortcutListItem(
- CDC & dc,
- CExtPaintManager::PAINTSHORTCUTLISTITEMSDATA & _pslid
- );
- #endif // (!defined __EXT_MFC_NO_SHORTCUTLIST_CTRL)
- virtual void OnSysColorChange();
- virtual void OnSettingChange(
- UINT uFlags,
- __EXT_MFC_SAFE_LPCTSTR lpszSection
- );
- virtual void OnDisplayChange(
- INT nDepthBPP,
- CPoint ptSizes
- );
- virtual void OnThemeChanged(
- WPARAM wParam,
- LPARAM lParam
- );
- virtual bool OnStateSerialize(
- CArchive & ar,
- bool bEnableThrowExceptions = false
- );
- virtual CSize GetToolBarButtonOffset( BOOL bHorz ) const;
- struct __PROF_UIS_API PAINTTOOLBARTEXTFIELDDATA
- {
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- UINT m_nDrawTextFlags;
- CExtSafeString m_sText;
- CRect m_rcButton, m_rcTextField;
- bool m_bComboField:1;
- bool m_bHover:1;
- bool m_bPushed:1;
- bool m_bEnabled:1;
- PAINTTOOLBARTEXTFIELDDATA();
- PAINTTOOLBARTEXTFIELDDATA(
- CObject * pHelperSrc,
- __EXT_MFC_SAFE_LPCTSTR sText,
- const RECT & rcButton,
- const RECT & rcTextField,
- bool bComboField,
- bool bHover,
- bool bPushed,
- bool bEnabled
- );
- }; // struct PAINTTOOLBARTEXTFIELDDATA
- virtual void PaintToolbarTextField(
- CDC & dc,
- PAINTTOOLBARTEXTFIELDDATA & _ptbtfd
- );
- virtual COLORREF GetIconAlphaColor() const;
- virtual double GetIconAlphaAdjustPercent() const;
- virtual bool AdjustIcon(
- CExtCmdIcon * pIcon
- );
- virtual CSize FixedBar_GetRoundedAreaMerics() const;
- virtual CSize GetResizingGriperSize(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual void PaintResizingGripper(
- CDC & dc,
- const RECT & rcGrip,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- virtual INT PageNavigator_GetSplitterHeight() const;
- virtual INT PageNavigator_GetItemCaptionHeight() const;
- virtual INT PageNavigator_GetItemPaneCaptionHeight() const;
- virtual void PaintPageNavigatorClientArea(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc
- );
- virtual void PaintPageNavigatorBorder(
- CDC & dc,
- const RECT & rcControl
- );
- virtual void PaintPageNavigatorItem(
- CDC & dc,
- const CRect & rcItem,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- CExtCmdIcon * pIcon,
- bool bExpanded,
- bool bSelected,
- bool bPushed,
- bool bHover
- );
- virtual void PaintPageNavigatorItemCaptionText(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption
- );
- virtual void PaintPageNavigatorItemCaption(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption
- );
- virtual void PaintPageNavigatorCaption(
- CDC & dc,
- const CRect & rcItem,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- CExtCmdIcon * pIcon,
- bool bExpanded,
- bool bSelected,
- bool bPushed,
- bool bHover,
- bool bAllowInvertTextColor = true,
- COLORREF clrForceText = COLORREF(-1L)
- );
- virtual void PaintPageNavigatorCaptionTextImpl(
- CDC & dc,
- const CRect & rcItem,
- __EXT_MFC_SAFE_LPCTSTR strCaption
- );
- virtual void PaintPageNavigatorCaptionText(
- CDC & dc,
- const CRect & rcItem,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- bool bSelected,
- bool bPushed,
- bool bHover,
- bool bAllowInvertTextColor = true,
- COLORREF clrForceText = COLORREF(-1L)
- );
- virtual void PaintPageNavigatorItemPaneCaptionTextImpl(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption
- );
- virtual void PaintPageNavigatorItemPaneCaptionText(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption
- );
- virtual void PaintPageNavigatorItemPaneCaption(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- bool bHover,
- bool bPressed,
- bool bExpandable,
- bool bExpanded,
- bool bDrawTopLine = true
- );
- virtual void PaintPageNavigatorConfigButton(
- CDC & dc,
- const CRect & rcItem,
- bool bPushed,
- bool bHover
- );
- virtual void PaintPageNavigatorSplitter(
- CDC & dc,
- const CRect & rcSplitter,
- bool bDrawDots = true
- );
- virtual void PaintPageNavigatorSplitterDots(
- CDC & dc,
- const CRect & rcSplitter,
- INT nOffsetV = 0
- );
- virtual void PaintPageNavigatorSplitterDotsImpl(
- CDC & dc,
- const CRect & rcSplitter,
- COLORREF clrDark,
- COLORREF clrLight,
- INT nOffsetV = 0,
- INT nDotCount = 9
- );
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- #if (!defined __EXT_MFC_NO_TASK_PANE )
- virtual void TaskPanePaintClientArea(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc
- );
- virtual void TaskPanePaintClientAreaToolbar(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc
- );
- virtual void TaskPanePaintBorder(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc
- );
- virtual void TaskPanePaintGroupCaptionBackground(
- CDC & dc,
- const CRect & rcCaption,
- bool bHover,
- bool bPressed,
- bool bHighlighted,
- bool bRoundedLeftTopCorner,
- bool bRoundedRightTopCorner,
- bool bGradient2Steps,
- CObject * pHelperSrc
- );
- virtual void TaskPanePaintGroupCaption(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- bool bHover,
- bool bPressed,
- bool bHighlighted,
- bool bPaintExpandButton,
- bool bExpanded,
- CObject * pHelperSrc
- );
- virtual void TaskPanePaintGroupCaptionText(
- CDC & dc,
- const CRect & rcText,
- __EXT_MFC_SAFE_LPCTSTR strText,
- bool bHover,
- bool bPressed,
- bool bHighlighted,
- CObject * pHelperSrc
- );
- virtual CRect TaskPaneQueryMarginsPage() const;
- virtual LONG TaskPaneQueryGroupSpacing() const;
- virtual LONG TaskPaneQueryGroupCaptionMinHeight() const;
- virtual CRect TaskPaneQueryGroupCaptionTextMargins() const;
- virtual HFONT TaskPaneQueryGroupCaptionFont();
- #endif // (!defined __EXT_MFC_NO_TASK_PANE )
- #if (!defined __EXT_MFC_NO_DATE_PICKER)
- virtual void PaintDatePickerPushButton(
- CDC & dc,
- const CRect & rcButton,
- LONG nButtonType, // __EDPWH_BTN_NONE or __EDPWH_BTN_TODAY
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- bool bFlat,
- bool bDrawBorder,
- bool bPushed,
- bool bHover,
- HFONT hFont,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintDatePickerButtonsSeparator(
- CDC & dc,
- const RECT & rcSeparator,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintDatePickerClientArea(
- CDC & dc,
- const RECT & rcTotalClient,
- const RECT & rcUsedClient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintDatePickerBorder(
- CDC & dc,
- const RECT & rcControl,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintDatePickerHeaderBackground(
- INT nCol,
- INT nRow,
- CDC & dc,
- INT nYear,
- INT nMonth,
- const RECT & rcHeader,
- const RECT & rcHeaderWithoutBorders,
- const RECT & rcHeaderDate,
- const RECT & rcScrollBtnBackward,
- const RECT & rcScrollBtnForward,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // (!defined __EXT_MFC_NO_DATE_PICKER)
- #ifndef __EXT_MFC_NO_UNDO_REDO_POPUP
- virtual void PaintUndoRedoCaption(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // __EXT_MFC_NO_UNDO_REDO_POPUP
- #if( !defined __EXT_MFC_NO_SPIN || !defined __EXT_MFC_NO_DURATIONWND )
- virtual CRect Spin_QueryNcAreaMargins(
- bool bSpinAlignRight,
- bool bSpinAlignLeft,
- bool bHasScrolBars
- ) const;
- virtual void PaintSpinButtonArrow(
- CDC & dc,
- const CRect & rcButton,
- bool bUp,
- bool bHorz,
- bool bEnabled,
- bool bPushed,
- bool bHover,
- bool bHotTrack,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintSpinButton(
- CDC & dc,
- const CRect & rcButton,
- bool bUp,
- bool bHorz,
- bool bEnabled,
- bool bFlat,
- bool bDrawBorder,
- bool bPushed,
- bool bHover,
- bool bHotTrack,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // #if( !defined __EXT_MFC_NO_SPIN || !defined __EXT_MFC_NO_DURATIONWND )
- #ifndef __EXT_MFC_NO_SLIDER
- virtual bool PaintSliderChannel(
- CDC & dc,
- const CRect & rcChannel,
- bool bHorz,
- bool bEnabled,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool PaintSliderThumb(
- CDC & dc,
- const CRect & rcThumb,
- bool bHorz,
- bool bLeft,
- bool bRight,
- bool bEnabled,
- bool bPushed,
- bool bFocused,
- bool bHover,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool PaintSliderTics(
- CDC & dc,
- const CRect & rcClient,
- bool bHorz,
- bool bEnabled,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // __EXT_MFC_NO_SLIDER
-
- #ifndef __EXT_MFC_NO_DURATIONWND
- virtual INT Duration_GetSpinButtonWidth(
- const CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual INT Duration_GetDropDownButtonWidth(
- const CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual CRect Duration_GetSpinButtonExtraSpace(
- const CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual CRect Duration_GetDropDownButtonExtraSpace(
- const CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual void Duration_PaintSpinButton(
- CDC & dc,
- const CRect & rcButton,
- bool bUp,
- bool bEnabled,
- bool bPushed,
- bool bHovered,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void Duration_PaintDropDownButton(
- CDC & dc,
- const CRect & rcButton,
- bool bEnabled,
- bool bPushed,
- bool bHovered,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // __EXT_MFC_NO_DURATIONWND
- #if (defined __EXT_PM_BACK_COMPATIBILITY_BITMAP_API)
- static HBITMAP stat_ColorizeMonochromeBitmap(
- HBITMAP hBitmapSrc,
- COLORREF clrTransparent,
- COLORREF clrTarget
- );
- static HBITMAP stat_HLS_Adjust_Bitmap(
- HBITMAP hBitmapSrc,
- COLORREF clrTransparent = RGB(0,0,0),
- COLORREF clrTolerance = RGB(0,0,0),
- double percentH = 0.0,
- double percentL = 0.0,
- double percentS = 0.0
- );
- static bool stat_HLS_Adjust_Bitmap(
- CBitmap & _bmp,
- COLORREF clrTransparent = RGB(0,0,0),
- COLORREF clrTolerance = RGB(0,0,0),
- double percentH = 0.0,
- double percentL = 0.0,
- double percentS = 0.0
- );
- static HRGN stat_HBITMAPtoHRGN(
- HBITMAP hBitmap,
- COLORREF clrTransparent,
- COLORREF clrTolerance = RGB(0,0,0)
- );
- #endif // __EXT_PM_BACK_COMPATIBILITY_BITMAP_API
- enum eStyle2005_t
- {
- __ES2005_BETA1 = 1,
- __ES2005_BETA2 = 2,
- __ES2005_RC = 3,
- };
- eStyle2005_t m_eStyle2005;
- #if (!defined __EXT_MFC_NO_DOCK_MARKERS)
- enum eDockMarkerType_t
- {
- __EDMT_2005_TOP = 0,
- __EDMT_2005_BOTTOM = 1,
- __EDMT_2005_LEFT = 2,
- __EDMT_2005_RIGHT = 3,
- __EDMT_2005_CENTER = 4,
- __EDMT_2005_GROUP_SPARSED = 5,
- __EDMT_2005_GROUP_CENTRAL = 6,
- #if (!defined __EXT_MFC_NO_TAB_CONTROLBARS )
- __EDMT_2005_GROUP_TAB = 7,
- __EDMT_2005_TAB = 8,
- #endif // (!defined __EXT_MFC_NO_TAB_CONTROLBARS )
- __EDMT_MIN_VALUE = 0,
- #if (!defined __EXT_MFC_NO_TAB_CONTROLBARS )
- __EDMT_MAX_VALUE = 8,
- #else // (!defined __EXT_MFC_NO_TAB_CONTROLBARS )
- __EDMT_MAX_VALUE = 6,
- #endif // else from (!defined __EXT_MFC_NO_TAB_CONTROLBARS )
- __EDMT_EMPTY = -1
- };
- class __PROF_UIS_API DockMarkerBase
- {
- public:
- eDockMarkerType_t m_eDockMarkerType;
- CExtBitmapCache m_bmpIn, m_bmpOut, m_bmpOuterBk;
- CPoint m_ptOffsetInner;
- CRgn m_rgn;
- CSize m_size;
- CTypedPtrArray < CPtrArray, DockMarkerBase * > m_arrChildren;
- CRect m_rcScreen;
- bool m_bSparsedMode:1;
- protected:
- CExtPaintManager * m_pPM;
- int m_eResizablePanelDockingType;
- virtual void _EmptyChildren();
- virtual void _DetachHandles();
- public:
- DockMarkerBase(
- CExtPaintManager * pPM,
- int eResizablePanelDockingType,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual ~DockMarkerBase();
- virtual bool IsEmpty() const;
- virtual void Empty();
- bool CreateFromBitmapResources(
- CRect rcScreen,
- eDockMarkerType_t eDockMarkerType,
- COLORREF clrTransparentIn,
- UINT nResourceBmpIn,
- UINT nResourceBmpOut,
- __EXT_MFC_SAFE_LPCTSTR strResourceTypeBmpIn = RT_BITMAP, // default bitmap section
- __EXT_MFC_SAFE_LPCTSTR strResourceTypeBmpOut = RT_BITMAP, // default bitmap section
- HINSTANCE hInstBmpIn = NULL, // find it automatically
- HINSTANCE hInstBmpOut = NULL // find it automatically
- );
- virtual bool CreateFromBitmapResources(
- CRect rcScreen,
- eDockMarkerType_t eDockMarkerType,
- COLORREF clrTransparentIn,
- __EXT_MFC_SAFE_LPCTSTR strResourceBmpIn,
- __EXT_MFC_SAFE_LPCTSTR strResourceBmpOut = NULL,
- __EXT_MFC_SAFE_LPCTSTR strResourceTypeBmpIn = RT_BITMAP, // default bitmap section
- __EXT_MFC_SAFE_LPCTSTR strResourceTypeBmpOut = RT_BITMAP, // default bitmap section
- HINSTANCE hInstBmpIn = NULL, // find it automatically
- HINSTANCE hInstBmpOut = NULL // find it automatically
- );
- bool CreateFromBitmapData(
- CRect rcScreen,
- eDockMarkerType_t eDockMarkerType,
- COLORREF clrTransparentIn,
- const BYTE * pDataBmpIn,
- DWORD dwSizeDataBmpIn,
- const BYTE * pDataBmpOut = NULL,
- DWORD dwSizeDataBmpOut = 0
- );
- virtual bool CreateFromBitmaps(
- CRect rcScreen,
- eDockMarkerType_t eDockMarkerType,
- COLORREF clrTransparentIn,
- const CExtBitmap & _bmpIn,
- const CExtBitmap & _bmpOut
- );
- virtual bool Create(
- bool bCentralMode,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual bool DockMarker_CreateWnds(
- HWND hWndLastDynamicTarget,
- CTypedPtrArray < CPtrArray, CExtDynDockMarkerWnd * > & arrDockMarkerWnds,
- CExtDynDockMarkerWnd * pWndParentMarker
- );
- virtual void OnCalcScreenRect(
- eDockMarkerType_t eDockMarkerType,
- CRect rcScreen,
- DockMarkerBase * pCenterMarker = NULL
- );
- }; // class DockMarkerBase
- class __PROF_UIS_API DockMarkerBeta2 : public DockMarkerBase
- {
- public:
- DockMarkerBeta2(
- CExtPaintManager * pPM,
- int eResizablePanelDockingType,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual ~DockMarkerBeta2();
- virtual bool Create(
- bool bCentralMode,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual void OnCalcScreenRect(
- eDockMarkerType_t eDockMarkerType,
- CRect rcScreen,
- DockMarkerBase * pCenterMarker = NULL
- );
- }; // class DockMarkerBeta2
- class __PROF_UIS_API DockMarker2008XP : public DockMarkerBase
- {
- public:
- DockMarker2008XP(
- CExtPaintManager * pPM,
- int eResizablePanelDockingType,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual ~DockMarker2008XP();
- virtual bool Create(
- bool bCentralMode,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual void OnCalcScreenRect(
- eDockMarkerType_t eDockMarkerType,
- CRect rcScreen,
- DockMarkerBase * pCenterMarker = NULL
- );
- }; // class DockMarker2008XP
- class __PROF_UIS_API DockMarker2008Vista : public DockMarkerBase
- {
- public:
- DockMarker2008Vista(
- CExtPaintManager * pPM,
- int eResizablePanelDockingType,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual ~DockMarker2008Vista();
- virtual bool Create(
- bool bCentralMode,
- eDockMarkerType_t eDockMarkerType = __EDMT_EMPTY,
- CRect rcScreen = CRect( 0, 0, 0, 0 )
- );
- virtual void OnCalcScreenRect(
- eDockMarkerType_t eDockMarkerType,
- CRect rcScreen,
- DockMarkerBase * pCenterMarker = NULL
- );
- }; // class DockMarker2008Vista
- virtual DockMarkerBase * DockMarker_CreateObject(
- int eResizablePanelDockingType
- );
- virtual bool DockMarker_CreateWnds(
- HWND hWndLastDynamicTarget,
- eDockMarkerType_t eDockMarkerType,
- CRect rcScreen,
- CTypedPtrArray < CPtrArray, CExtDynDockMarkerWnd * > & arrDockMarkerWnds,
- int eResizablePanelDockingType,
- CExtDynDockMarkerWnd * pWndParentMarker
- );
- virtual void DockMarker_PostRender(
- CDC & dc,
- CRect rcItem,
- eDockMarkerType_t eMarkerType,
- bool bHover,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual CRect DockMarker_GetOuterDistance();
- virtual BYTE DockMarker_GetAlpha(
- bool bHighlight,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool DockMarker_IsAdjustBmpsRequired(
- eDockMarkerType_t eDockMarkerType
- ) const;
- virtual void DockMarker_AdjustBmps(
- eDockMarkerType_t eDockMarkerType,
- CExtBitmap & bmpIn,
- COLORREF clrTransparentIn,
- CExtBitmap & bmpOut,
- COLORREF clrTransparentOut
- );
- virtual void DockMarker_AdjustHighlightedArea(
- COLORREF * pClrSurface,
- int nClrSurfaceDX,
- int nClrSurfaceDY,
- bool bTabShape,
- bool bTabsAtTop,
- const CRect & rcTabMainArea,
- const CRect & rcTabBottomMiddleArea,
- COLORREF clrAdjustMain = COLORREF(-1L),
- COLORREF clrAdjustBorder = COLORREF(-1L),
- int nBorderMetric = 2
- );
- virtual void DockMarker_AdjustHighlightedLayer(
- HWND hWnd,
- int nDX,
- int nDY,
- bool bTabShape,
- bool bTabsAtTop,
- const CRect & rcTabMainArea,
- const CRect & rcTabBottomMiddleArea,
- COLORREF clrAdjustMain = COLORREF(-1L),
- COLORREF clrAdjustBorder = COLORREF(-1L),
- int nBorderMetric = 2
- );
- #endif // (!defined __EXT_MFC_NO_DOCK_MARKERS)
- virtual void PaintBarButtonCombinedArea(
- CDC & dc,
- CExtBarButton * pTBB,
- LPARAM lParam = 0L
- );
- virtual COLORREF QueryObjectTextColor(
- CDC & dc,
- bool bEnabled,
- bool bFocused,
- bool bHovered,
- bool bPressed,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool PaintGroupBoxFrame(
- CDC & dc,
- const RECT & rcBorder,
- COLORREF clrFrame = COLORREF(-1L),
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual bool PaintGroupBoxLabel(
- CDC & dc,
- __EXT_MFC_SAFE_LPCTSTR strText,
- COLORREF clrText,
- HFONT hFont,
- DWORD dwDrawTextFlags,
- bool bEnabled,
- const RECT & rcText,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- static COLORREF stat_PaintShadedEllipse_ComputeColorValue(
- double lfA,
- COLORREF clrShadeAccentLight,
- COLORREF clrShadeAccentDark
- );
- static void stat_PaintShadedEllipse(
- HDC hDC,
- const POINT & ptEllipseCenter,
- LONG nRadiusH,
- LONG nRadiusV,
- COLORREF clrShadeAccentLight,
- COLORREF clrShadeAccentDark
- );
- virtual bool ScrollBar_GetMetrics(
- INT * p_nHorzBarHeight = NULL,
- INT * p_nVertBarWidth = NULL,
- INT * p_nHorzButtonWidth = NULL,
- INT * p_nVertButtonHeight = NULL,
- INT * p_nHorzThumbMinWidth = NULL,
- INT * p_nVertThumbMinHeight = NULL,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- ) const;
- enum e_scroll_bar_mouse_hover_type_t
- {
- __ESBMHT_NOWHERE = -1,
- __ESBMHT_SOLID_SCROLLABLE_AREA = 0, // basically used for disabled state
- __ESBMHT_BUTTON_UP = 1,
- __ESBMHT_BUTTON_DOWN = 2,
- __ESBMHT_THUMB = 3,
- __ESBMHT_PAGE_UP = 4,
- __ESBMHT_PAGE_DOWN = 5,
- __ESBMHT_GLYPH_ARROW_UP = 6, // for skinning purposes only
- __ESBMHT_GLYPH_ARROW_DOWN = 7, // for skinning purposes only
- __ESBMHT_GLYPH_THUMB_GRIPPER = 8, // for skinning purposes only
- __ESBMHT_PART_COUNT = 9, // for using as array dimension
- }; // enum e_scroll_bar_mouse_hover_type_t
- enum e_scroll_bar_skin_part_t
- {
- __ESBSPT_DISABLED = 0,
- __ESBSPT_COLD = 1,
- __ESBSPT_NORMAL = 2,
- __ESBSPT_HOT = 3,
- __ESBSPT_PRESSED = 4,
- __ESBSPT_PART_COUNT = 5, // for using as array dimension
- }; // enum e_scroll_bar_skin_part_t
- struct __PROF_UIS_API SCROLLBARSKINDATA
- {
- CExtBitmapCache m_arrPartBmp[__ESBSPT_PART_COUNT][__ESBMHT_PART_COUNT];
- CRect m_arrPartPadding[__ESBSPT_PART_COUNT][__ESBMHT_PART_COUNT];
- COLORREF m_arrClrSolidBackground[__ESBSPT_PART_COUNT][__ESBMHT_PART_COUNT];
- COLORREF m_clrZsLineLightEnabled, m_clrZsLineDarkEnabled, m_clrZsLineLightDisabled, m_clrZsLineDarkDisabled;
- CExtBitmapCache m_bmpEntireArea;
- CRect m_rcEntirePaddingR, m_rcEntirePaddingC;
- SCROLLBARSKINDATA();
- virtual ~SCROLLBARSKINDATA();
- virtual void Empty();
- virtual CExtBitmap & GetPart(
- e_scroll_bar_skin_part_t ePartState,
- e_scroll_bar_mouse_hover_type_t eSBMHT, // part type
- RECT * pRectPadding = NULL,
- COLORREF * pClrSolidBackground = NULL
- );
- const CExtBitmap & GetPart(
- e_scroll_bar_skin_part_t ePartState,
- e_scroll_bar_mouse_hover_type_t eSBMHT, // part type
- RECT * pRectPadding = NULL,
- COLORREF * pClrSolidBackground = NULL
- ) const;
- virtual void Load2007_Zoom(
- UINT nResourceID_ButtonPlus,
- UINT nResourceID_ButtonMinus,
- UINT nResourceID_ButtonThumb,
- COLORREF clrZsLineLightEnabled,
- COLORREF clrZsLineDarkEnabled,
- COLORREF clrZsLineLightDisabled,
- COLORREF clrZsLineDarkDisabled,
- UINT nDockID,
- bool bResourceColorChannelsPreMultiplied = true
- );
- virtual void Load2010_Zoom_R1(
- UINT nResourceID_ButtonPlus,
- UINT nResourceID_ButtonMinus,
- UINT nResourceID_ButtonThumb,
- COLORREF clrZsLineLightEnabled,
- COLORREF clrZsLineDarkEnabled,
- COLORREF clrZsLineLightDisabled,
- COLORREF clrZsLineDarkDisabled,
- UINT nDockID,
- bool bResourceColorChannelsPreMultiplied = true
- );
- virtual void Load2010_Zoom_R2(
- UINT nResourceID_ButtonPlus,
- UINT nResourceID_ButtonMinus,
- UINT nResourceID_ButtonThumb,
- COLORREF clrZsLineLightEnabled,
- COLORREF clrZsLineDarkEnabled,
- COLORREF clrZsLineLightDisabled,
- COLORREF clrZsLineDarkDisabled,
- UINT nDockID,
- bool bResourceColorChannelsPreMultiplied = true
- );
- virtual void Load2007_R1(
- UINT nResourceID_BumpyGlyphStack,
- INT nBumpyGlyphStackItemHeight,
- UINT nResourceID_Gripper,
- const RECT & rcBumpyGlyphStackItemPadding,
- COLORREF clrSolidBackground,
- COLORREF clrPressedPageAreas,
- UINT nResourceID_ArrowUp_Normal,
- UINT nResourceID_ArrowUp_Disabled,
- UINT nResourceID_ArrowDown_Normal,
- UINT nResourceID_ArrowDown_Disabled,
- bool bRotateArrowsAndBk270,
- UINT nResourceID_BkEntire,
- UINT nResourceID_BkPage,
- const RECT & rcEntirePaddingR,
- const RECT & rcEntirePaddingC
- );
- virtual void Load2007_R2(
- UINT nResourceID_BumpyGlyphStack,
- INT nBumpyGlyphStackItemHeight,
- UINT nResourceID_GripperStack,
- INT nGripperStackItemHeight,
- const RECT & rcBumpyGlyphStackItemPadding,
- COLORREF clrSolidBackground,
- COLORREF clrPressedPageAreas,
- UINT nResourceID_ArrowUp_Normal,
- UINT nResourceID_ArrowUp_Disabled,
- UINT nResourceID_ArrowDown_Normal,
- UINT nResourceID_ArrowDown_Disabled,
- bool bRotateArrowsAndBk270,
- UINT nResourceID_BkEntire,
- UINT nResourceID_BkPage,
- const RECT & rcEntirePaddingR,
- const RECT & rcEntirePaddingC
- );
- }; // struct SCROLLBARSKINDATA
- struct __PROF_UIS_API PAINTSCROLLBARDATA
- {
- bool m_bHorzBar:1, m_bEnabled:1, m_bHoveredAreaIsPressed:1, m_bHelperLightAccent:1;
- e_scroll_bar_mouse_hover_type_t m_eSBMHT;
- CRect m_rcBar, m_rcPageUp, m_rcPageDown,
- m_rcButtonUp, m_rcButtonDown, m_rcThumb,
- m_rcScrollableArea;
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- SCROLLINFO m_DSI;
- PAINTSCROLLBARDATA();
- PAINTSCROLLBARDATA(
- bool bHorzBar,
- bool bEnabled,
- bool bHoveredAreaIsPressed,
- e_scroll_bar_mouse_hover_type_t eSBMHT,
- const RECT & rcBar,
- const RECT & rcButtonUp,
- const RECT & rcButtonDown,
- const RECT & rcThumb,
- const RECT & rcPageUp,
- const RECT & rcPageDown,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- PAINTSCROLLBARDATA(
- CExtScrollBar * pExtScrollBar,
- bool bHoveredAreaIsPressed = false,
- e_scroll_bar_mouse_hover_type_t eSBMHT = CExtPaintManager::__ESBMHT_NOWHERE,
- LPARAM lParam = 0L
- );
- virtual ~PAINTSCROLLBARDATA();
- virtual void PaintDefault(
- CDC & dc,
- CExtPaintManager * pPM
- );
- virtual void PaintSkinned(
- CDC & dc,
- CExtPaintManager * pPM,
- const SCROLLBARSKINDATA & _sbsd,
- BYTE nConstantAlpha = 0x0FF
- );
- virtual e_scroll_bar_mouse_hover_type_t GetHT(
- const POINT & pt
- ) const;
- virtual e_scroll_bar_mouse_hover_type_t AdjustHT(
- const POINT & pt
- );
- virtual CRect GetAreaRect(
- e_scroll_bar_mouse_hover_type_t eSBMHT
- ) const;
- virtual CRect GetAreaRectHT() const;
- }; // struct PAINTSCROLLBARDATA
- bool m_bScrollBarsHaveHoverEffectIn2kStyle:1;
- virtual void ScrollBar_Paint(
- CDC & dc,
- PAINTSCROLLBARDATA & _psbd
- ) const;
- virtual SCROLLBARSKINDATA * ScrollBar_GetSkinData(
- bool bHorzBar,
- CObject * pHelperSrc,
- LPARAM lParam = 0L,
- bool bLightAccent = true
- );
- #ifndef __EXT_MFC_NO_GRIDWND
- virtual bool Grid_PaintButton(
- CDC & dc,
- const RECT & rcButton,
- INT nButtonType,
- bool bPressed,
- bool bHovered,
- bool bFocused,
- bool bEnabled,
- COLORREF clrFace,
- COLORREF clrLight,
- COLORREF clrShadow,
- COLORREF clrWindow,
- COLORREF clrText,
- DWORD dwHelperPaintFlags,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool Grid_PaintHeaderSortArrow(
- CDC & dc,
- const RECT & rcSortArrow,
- bool bHorz,
- bool bAscending,
- COLORREF * pColorValues,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool Grid_PaintHeaderBackground(
- CDC & dc,
- const RECT & rcArea,
- LONG nColNo,
- LONG nRowNo,
- INT nColType,
- INT nRowType,
- DWORD dwAreaFlags,
- DWORD dwHelperPaintFlags,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual COLORREF Grid_OnQueryTextColor(
- const CExtGridCell & _cell,
- CDC & dc,
- LONG nVisibleColNo,
- LONG nVisibleRowNo,
- LONG nColNo,
- LONG nRowNo,
- INT nColType,
- INT nRowType,
- DWORD dwAreaFlags,
- DWORD dwHelperPaintFlags
- );
- #endif // #ifndef __EXT_MFC_NO_GRIDWND
- #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
- virtual bool ReportGrid_PaintHeaderRowBackground(
- CDC & dc,
- const RECT & rcArea,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool ReportGrid_PaintHeaderSortArrow(
- CDC & dc,
- const RECT & rcSortArrow,
- bool bAscending,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool ReportGrid_PaintGroupAreaBackground(
- CDC & dc,
- const RECT & rcArea,
- __EXT_MFC_SAFE_LPCTSTR strEmptyAreaCaption, // not NULL if area is empty
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual COLORREF ReportGrid_GetHeaderTextColor(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual COLORREF ReportGrid_GetGroupConnectorColor(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool ReportGrid_PaintGroupAreaItemBackground(
- CDC & dc,
- const RECT & rcItem,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- virtual bool Ribbon_OptionsPageBackgroundIsDefault() const;
- virtual void Ribbon_DwmAreaAdjust(
- CExtRibbonBar * pRibbonBar,
- CExtUxTheme::__EXT_UX_MARGINS & _margins,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_DwmAreaCoversTabs() const;
- virtual INT Ribbon_GetContractedMarginHeight(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_PaintContractedMargin(
- CDC & dc,
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GetGroupHeight(
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GetToolGroupExtraOffset(
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GetToolGroupExtraLineDistance(
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GetOuterGroupDistance(
- const CExtBarButton * pTBB,
- bool bDistanceBefore,
- LPARAM lParam = 0L
- );
- virtual CRect Ribbon_GetContentPadding(
- const CExtBarButton * pTBB,
- LPARAM lParam = 0L
- );
- virtual CSize Ribbon_GetIconSize(
- const CObject * pHelperSrc,
- INT nILV,
- LPARAM lParam = 0L
- );
- virtual CSize Ribbon_GetDropDownArrowSize(
- CDC & dc,
- INT nILV,
- const CExtBarButton * pTBB,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GetTextToIconDistance(
- CDC & dc,
- INT nILV,
- const CExtBarButton * pTBB,
- LPARAM lParam = 0L
- );
- virtual CSize Ribbon_CalcButtonSize(
- CDC & dc,
- INT nILV,
- const CExtBarButton * pTBB,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GroupCaptionGetHeight(
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- ) const;
- virtual bool Ribbon_GroupCaptionIsAtTop(
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- ) const;
- virtual CExtCmdIcon * Ribbon_GetGroupCollapsedIcon(
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_PaintText(
- CDC & dc,
- __EXT_MFC_SAFE_LPCTSTR strText,
- const RECT & rcText,
- UINT nDrawTextFlags,
- bool bDrawDropDownArrow,
- CExtBitmap * pBmpAlternativeDropDownArrow,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_PaintGroupBk(
- CDC & dc,
- const RECT & rcGroupBk,
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_PaintQuickAccessGroupButton(
- CDC & dc,
- const RECT & rcGroupBk,
- const CExtRibbonButtonGroup * pGroupTBB,
- LPARAM lParam = 0L
- );
- virtual CRect Ribbon_GetPageOuterContentPadding(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_PaintPageBk(
- CDC & dc,
- const RECT & rcPageBk,
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_PaintSeparator(
- CDC & dc,
- const RECT & rcTBB,
- const CExtBarButton * pSepTBB, // can be NULL
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_HaveSeparatorsBetweenToolGroups() const;
- virtual CRect Ribbon_CalcLargeDropDownRect(
- const CExtBarButton * pTBB,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_PaintPushButton(
- CDC & dc,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- );
- virtual CRect Ribbon_GetPopupGroupBorderMetrics(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_IsPopupGroupWithCaption(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual INT RibbonLayout_CalcQatbAboveRibbonHorzStart(
- CExtRibbonBar * pRibbonBar,
- LPARAM lParam = 0L
- );
- virtual INT RibbonQuickAccessBar_GetBottomHeight(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- ) const;
- virtual INT RibbonQuickAccessBar_GetButtonsAlignment(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- ) const;
- virtual void RibbonQuickAccessBar_PaintBkAtTheBottom(
- CDC & dc,
- CRect rcQATB,
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- ) const;
- virtual void RibbonQuickAccessBar_AdjustButtonLocation(
- CExtBarButton * pTBB,
- CRect & rcTBB,
- LPARAM lParam = 0L
- );
- virtual INT RibbonQuickAccessBar_GetAdditionalSpaceAtRight(
- bool bDwmMode,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GetTabIntersectionHeight(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- ) const;
- virtual void Ribbon_PaintTabItem(
- CDC & dc,
- CRect & rcTabItemsArea,
- bool bSelected,
- const CRect & rcEntireItem,
- CFont * pFont,
- __EXT_MFC_SAFE_LPCTSTR sText,
- CExtCmdIcon * pIcon,
- CObject * pHelperSrc,
- LPARAM lParam = 0L,
- COLORREF clrForceText = COLORREF(-1L),
- COLORREF clrForceTabBk = COLORREF(-1L),
- COLORREF clrForceTabBorderLT = COLORREF(-1L),
- COLORREF clrForceTabBorderRB = COLORREF(-1L),
- COLORREF clrForceTabSeparator = COLORREF(-1L)
- );
- virtual void Ribbon_PaintTabClientArea(
- CDC & dc,
- CRect & rcClient,
- CRect & rcTabItemsArea,
- CRect & rcTabNearBorderArea,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual INT Ribbon_GetTabLineHeight(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- ) const;
- virtual HRGN Ribbon_GetRgnCornerExclude(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual HRGN Ribbon_GetRgnCornerResizing(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_NcOverPaint(
- CDC & dc,
- bool bFrameActive,
- INT nWidthFromLeft,
- bool bDwmMode,
- LPCRECT pRectDwmText,
- __EXT_MFC_SAFE_LPCTSTR strDwmCaptionTitle,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_EmbeddedCaptionPaintText(
- CDC & dc,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- CRect rcDrawText,
- __EXT_MFC_SAFE_LPCTSTR strCaptionDelimiter,
- const CExtRibbonBar * pRibbonBar,
- LPARAM lParam = 0L
- );
- virtual UINT Ribbon_EmbeddedCaptionGetTextAlignmentFlags(
- const CExtRibbonBar * pRibbonBar,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_EmbeddedCaptionAdjustTextRect(
- CRect & rcAdjust,
- const CExtRibbonBar * pRibbonBar,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_FileMenuButtonQuery(
- LPVOID pData,
- CExtCmdIcon * pIcon = NULL,
- __EXT_MFC_SAFE_LPCTSTR sText = NULL,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_FileButtonIsItegrationSupported() const;
- virtual bool Ribbon_IsSystemMenuIconPresent() const;
- virtual INT Ribbon_FileButtonGetMenuIntersectionHeight() const;
- virtual bool Ribbon_FileButtonCalcLayout(
- CDC & dc,
- CExtNcFrameImpl * pExtNcFrameImpl,
- CExtRibbonButtonFile * pFileTBB,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_FileButtonPaint(
- CDC & dc,
- CExtRibbonButtonFile * pFileTBB,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_QuickAccessContentExpandButtonCalcLayout(
- CDC & dc,
- CExtRibbonButtonQuickAccessContentExpand * pQACEB,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_QuickAccessContentExpandButtonPaint(
- CDC & dc,
- CExtRibbonButtonQuickAccessContentExpand * pQACEB,
- LPARAM lParam = 0L
- );
- virtual CSize Ribbon_QuickAccessContentExpandGetShift(
- CDC & dc,
- CExtRibbonButtonQuickAccessContentExpand * pQACEB,
- LPARAM lParam = 0L
- );
- virtual bool Ribbon_DLB_IsVisible(
- CExtRibbonButtonDialogLauncher * pTBB,
- LPARAM lParam = 0L
- ) const;
- virtual CSize Ribbon_DLB_CalcSize(
- CDC & dc,
- CExtRibbonButtonDialogLauncher * pTBB,
- LPARAM lParam = 0L
- );
- virtual void Ribbon_DLB_Paint(
- CDC & dc,
- CExtRibbonButtonDialogLauncher * pTBB,
- LPARAM lParam = 0L
- );
- virtual CFont * RibbonGallery_GetItemFont(
- CExtRibbonGalleryWnd * pGalleryWnd,
- LPVOID pGalleryItemData,
- LPARAM lParam = 0L
- );
- virtual CSize RibbonGallery_MeasureItem(
- CDC & dc,
- CExtRibbonGalleryWnd * pGalleryWnd,
- LPVOID pGalleryItemData,
- LPARAM lParam = 0L
- );
- virtual bool RibbonGallery_DrawItem(
- CDC & dc,
- CExtRibbonGalleryWnd * pGalleryWnd,
- const RECT & rcItem,
- LPVOID pGalleryItemData,
- LPARAM lParam = 0L
- );
- virtual bool RibbonGallery_EraseEntireBk(
- CDC & dc,
- const CRect & rcClient,
- const CRect & rcActiveChildArea,
- CRgn & rgnActiveChildArea,
- const CRect & rcActiveChildArea2,
- CRgn & rgnActiveChildArea2,
- CExtRibbonGalleryWnd * pGalleryWnd,
- LPARAM lParam = 0L
- );
- virtual void RibbonGallery_AdjustClientRect(
- CRect & rcClient,
- const CExtRibbonGalleryWnd * pGalleryWnd,
- LPARAM lParam = 0L
- );
- virtual void RibbonGallery_PaintScrollArea(
- CDC & dc,
- CExtRibbonGalleryInplaceScrollBar * pSB,
- LPARAM lParam = 0L
- );
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- virtual void AdvTip_CalcRgn(
- HRGN hRgnPrecalc,
- const RECT & rcRectRgn,
- bool bDynamicShadowApplied,
- INT nSizeInnerShadowIncluded,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual bool AdvTip_PaintBackground(
- CDC & dc,
- const RECT & rcClient,
- bool bAdvTipWithShadow,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual CFont * AdvTip_GetFont(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual COLORREF AdvTip_GetTextColor(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- struct __PROF_UIS_API PAINTPROGRESSDATA
- {
- int m_nPos, m_nRange;
- CRect m_rcClient;
- bool m_bHorz:1, m_bSmooth:1, m_bBorder:1;
- CObject * m_pHelperSrc;
- LPARAM m_lParam;
- bool m_bEndlessMode:1;
- LONG m_nEndlessNominator, m_nEndlessDenominator;
- PAINTPROGRESSDATA(
- int nPos,
- int nRange,
- const RECT & rcClient,
- bool bHorz = true,
- bool bSmooth = true,
- bool bBorder = true,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- )
- : m_nPos( nPos )
- , m_nRange( nRange )
- , m_rcClient( rcClient )
- , m_bHorz( bHorz )
- , m_bSmooth( bSmooth )
- , m_bBorder( bBorder )
- , m_pHelperSrc( pHelperSrc )
- , m_lParam( lParam )
- , m_bEndlessMode( false )
- , m_nEndlessNominator( 1 )
- , m_nEndlessDenominator( 3 )
- {
- }
- }; // struct PAINTPROGRESSDATA
- virtual bool PaintProgress(
- CDC & dc,
- PAINTPROGRESSDATA & _ppd
- );
- #if (!defined __EXT_MFC_NO_CUSTOMIZE)
- virtual CFont & ScreenTip_GetFont(
- bool bCaption,
- bool bMainPart,
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual CRect ScreenTip_GetPaddingOuter(
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual CRect ScreenTip_GetPaddingInnerBmp(
- bool bMainPart,
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual CRect ScreenTip_GetPaddingInnerText(
- bool bCaption,
- bool bMainPart,
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual INT ScreenTip_GetSeparatorHeight(
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual COLORREF ScreenTip_GetTextColor(
- bool bCaption,
- bool bMainPart,
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual CSize ScreenTip_Measure(
- CDC & dc,
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual void ScreenTip_PaintBackground(
- CDC & dc,
- const RECT & rcScreenTip,
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual void ScreenTip_Paint(
- CDC & dc,
- const RECT & rcScreenTip,
- CExtCustomizeCmdScreenTip & _CCST,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- #endif // (!defined __EXT_MFC_NO_CUSTOMIZE)
- #if (!defined __EXT_MFC_NO_PAGECONTAINER_CTRL)
- bool m_bPageContainerUseButtonStyle:1;
- bool m_bPageContainerUseGroupBoxStyle:1;
- bool m_bPageContainerNoEmbossDisabledText:1;
- virtual void PageContainer_EraseEntire(
- CDC & dc,
- CRect rcClient,
- CExtPageContainerWnd * pWndPageContainer,
- LPARAM lParam = 0L
- );
- virtual void PageContainer_EraseScrollPosArea(
- CDC & dc,
- CRect rcScrollPosArea,
- LONG nScrollPos,
- LONG nScrollSize,
- CExtPageContainerWnd * pWndPageContainer,
- LPARAM lParam = 0L
- );
- virtual void PageContainer_DrawScrollPosArea(
- CDC & dc,
- CRect rcScrollPosArea,
- LONG nScrollPos,
- LONG nScrollSize,
- CExtPageContainerWnd * pWndPageContainer,
- LPARAM lParam = 0L
- );
- virtual void PageContainer_EraseItem(
- CDC & dc,
- LPVOID pPageInfo, // CExtPageContainerWnd::PAGE_ITEM_INFO
- CRect rcPage,
- CRect rcCaption,
- CRect rcWnd,
- CExtPageContainerWnd * pWndPageContainer,
- LPARAM lParam = 0L
- );
- virtual void PageContainer_DrawItem(
- CDC & dc,
- LPVOID pPageInfo, // CExtPageContainerWnd::PAGE_ITEM_INFO
- CRect rcPage,
- CRect rcCaption,
- CRect rcWnd,
- CExtPageContainerWnd * pWndPageContainer,
- LPARAM lParam = 0L
- );
- virtual void PageContainer_EraseCaption(
- CDC & dc,
- LPVOID pPageInfo, // CExtPageContainerWnd::PAGE_ITEM_INFO
- CRect rcCaption,
- CExtPageContainerWnd * pWndPageContainer,
- LPARAM lParam = 0L
- );
- virtual void PageContainer_DrawCaption(
- CDC & dc,
- LPVOID pPageInfo, // CExtPageContainerWnd::PAGE_ITEM_INFO
- CRect rcCaption,
- CExtPageContainerWnd * pWndPageContainer,
- LPARAM lParam = 0L
- );
- #endif // (!defined __EXT_MFC_NO_PAGECONTAINER_CTRL)
- // header control
- virtual void Header_PaintBackground(
- CDC & dc,
- CRect rc,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual CRect Header_GetItemPadding(
- INT nColNo,
- INT nColCount,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual void Header_PaintItem(
- CDC & dc,
- CRect rcItemEntire,
- CRect rcItemData,
- CRect rcIcon,
- CRect rcText,
- CRect rcSortArrow,
- CRect rcButton,
- CRect rcButtonIcon,
- bool bSorted,
- bool bSortedAscending,
- INT nColNo,
- INT nColCount,
- const CExtCmdIcon & iconItem,
- const CExtCmdIcon & iconButton,
- bool bHover,
- bool bPressed,
- bool bButtonEvent,
- __EXT_MFC_SAFE_LPCTSTR strItemText,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void Header_GetButtonPadding(
- INT & nButtonPaddingBefore,
- INT & nButtonPaddingAfter,
- INT nColNo,
- INT nColCount,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual INT Header_GetDistanceBetweenIconAndSortArrow(
- INT nColNo,
- INT nColCount,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual INT Header_GetDistanceBetweenIconAndText(
- INT nColNo,
- INT nColCount,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual INT Header_GetDistanceBetweenTextAndButton(
- INT nColNo,
- INT nColCount,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- virtual INT Header_GetSortArrowWidth(
- INT nColNo,
- INT nColCount,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- ) const;
- }; // class CExtPaintManager
- class __PROF_UIS_API CExtPaintManagerXP : public CExtPaintManager
- {
- protected:
- bool m_bEnabledHoverIconShadows:1;
- bool m_bHelperXpStyle8BitBarRect:1;
- bool m_bExpBtnSwapVGlyphs:1;
- const glyph_t * m_pGlyphTbEpBtnH0;
- const glyph_t * m_pGlyphTbEpBtnH1;
- const glyph_t * m_pGlyphTbEpBtnV0;
- const glyph_t * m_pGlyphTbEpBtnV1;
- int m_nIdxClrMlaNormLeft, m_nIdxClrMlaNormRight, m_nIdxClrMlaNormMiddle,
- m_nIdxClrMlaRarelyLeft, m_nIdxClrMlaRarelyRight, m_nIdxClrMlaRarelyMiddle,
- m_nIdxClrBtnNormLeft, m_nIdxClrBtnNormRight,
- m_nIdxClrBtnHoverLeft, m_nIdxClrBtnHoverRight,
- m_nIdxClrBtnPressedLeft, m_nIdxClrBtnPressedRight,
- m_nIdxClrBtnHovPresLeft, m_nIdxClrBtnHovPresRight;
- public:
- COLORREF m_clrCustomDropDownGlyphEnabled, m_clrCustomDropDownGlyphDisabled;
- DECLARE_SERIAL( CExtPaintManagerXP );
- // construction/destruction
- CExtPaintManagerXP();
- virtual ~CExtPaintManagerXP();
- virtual e_paint_manager_name_t OnQueryPaintManagerName()
- {
- ASSERT_VALID( this );
- return OfficeXP;
- }
- virtual INT GetSeparatorHeight()
- {
- ASSERT_VALID( this );
- return 1;
- }
- virtual bool OnQueryUseThemeColors() const;
- virtual COLORREF GetShadowAdjustColor();
- virtual void FixedBar_AdjustClientRect(
- const CExtControlBar * pBar,
- CRect & rcPreCalc
- );
- virtual INT FixedBar_GetRowDistance(
- const CExtToolControlBar * pBar
- );
- virtual bool FixedBar_IsPaintRowBkMode(
- const CExtToolControlBar * pBar
- );
- // install required translated color as
- // described in e_translated_colors_t enumeration
- virtual void InitTranslatedColors();
- // gets the pushed metic offset
- virtual CSize GetPushedOffset();
- // paint methods
- virtual void PaintPushButton(
- CDC & dc,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- );
- virtual void PaintPushButtonText(
- CDC & dc,
- CRect & rcCaption,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- );
- virtual void PaintGripper(
- CDC & dc,
- CExtPaintManager::PAINTGRIPPERDATA & _pgd
- );
- virtual void PaintSeparator(
- CDC & dc,
- const RECT & rectItem,
- bool bHorz,
- bool bTransparentBk,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintIcon(
- CDC & dc,
- bool bHorz,
- CExtCmdIcon * pIcon,
- const CRect & rcClient,
- bool bPushed,
- bool bEnabled,
- bool bHover = false,
- INT nIconAlignment = 0,
- bool bRTL = false,
- CRect * prcIcon = NULL,
- CRect * prcText = NULL,
- CRect * prcIconMargins = NULL,
- COLORREF clrCustomAccentEffectForIcon = COLORREF(-1L)
- );
- virtual void PaintMenuItem(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid
- );
- virtual void PaintMenuItemIcon(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid
- );
- virtual void PaintMenuItemInPlaceWnd(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid
- );
- virtual void PaintMenuItemLeftAreaMarginXP(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid,
- const RECT & rcFillLeftPart,
- const RECT & rcFillRightPart
- );
- virtual bool PaintMenuItemBackgroundXP(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid,
- const RECT & rcSelectionArea
- );
- virtual bool PaintMenuItemSelectionAreaXP(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid,
- const RECT & rcSelectionArea
- );
- enum e_CheckMarkAreaTypeXP
- {
- __ECMATXP_EXTRA_MARK_CHECKED = 0,
- __ECMATXP_ICON_OR_CHECK_OR_RADIO_FRAME = 1,
- };
- virtual bool PaintMenuItemCheckMarkAreaXP(
- CDC & dc,
- CExtPaintManager::PAINTMENUITEMDATA & _pmid,
- const RECT & rcCheckMarkArea,
- e_CheckMarkAreaTypeXP eCMATXP
- );
- virtual void PaintMenuSeparator(
- CDC & dc,
- const RECT & rectItem,
- int nIconAreaWidth,
- bool bRarelyUsed,
- bool bIsForceNoLeftGradient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintControlFrame(
- CDC & dc,
- CExtPaintManager::PAINTCONTROLFRAMEDATA & _pcfd
- );
- virtual void PaintComboFrame(
- CDC & dc,
- CExtPaintManager::PAINTCOMBOFRAMEDATA & _pcfd
- );
- virtual void PaintSysCmdGlyph(
- CDC & dc,
- UINT nHelperSysCmdID,
- const RECT & rcItem,
- bool bHover,
- bool bPushed,
- bool bEnabled,
- COLORREF clrForceGlyphColor = COLORREF(-1L)
- );
- virtual void PaintFloatToolbarRowBk(
- CDC & dc,
- const CExtToolControlBar * pBar,
- int nLastReviewBtnIdx,
- CRect & rcRowBk
- );
- virtual void PaintToolbarExpandButton(
- CDC & dc,
- const RECT & rcButtonArea,
- bool bHorz, // if false - down
- bool bBarIsCompletelyVisible,
- bool bEnabled,
- bool bPushed,
- bool bHover,
- CObject * pHelperSrc,
- LPARAM lParam = 0L,
- bool bTransparentBackground = false
- );
- virtual void PaintMenuExpandButton(
- CDC & dc,
- const RECT & rectButton,
- bool bPushed,
- bool bHover,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintMenuScrollButton(
- CDC & dc,
- bool bHover,
- bool bPushed,
- bool bTopButton,
- const RECT & rcScrollButton,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintMenuTearOffButton(
- CDC & dc,
- const RECT & rectButton,
- bool bPushed,
- bool bHover,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual int GetMenuExpandButtonHeight();
- virtual void PaintDockingFrame(
- CDC & dc,
- CExtPaintManager::PAINTDOCKINGFRAMEDATA & _pdfd
- );
- virtual int GetMenuShadowSize() const;
- virtual CRect GetMenuBorderMetrics(
- CWnd * pWnd,
- LPARAM lParam = 0
- ) const;
- virtual void PaintMenuBorder(
- CDC & dc,
- const RECT & rectClient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- enum e_xp_colors_t
- {
- XPCLR_3DFACE_DARK = __ExtMfc_XP_COLOR_SHIFT+0,
- XPCLR_3DFACE_NORMAL = __ExtMfc_XP_COLOR_SHIFT+1,
- XPCLR_SEPARATOR = __ExtMfc_XP_COLOR_SHIFT+2,
- XPCLR_HILIGHT = __ExtMfc_XP_COLOR_SHIFT+3,
- XPCLR_HILIGHT_BORDER = __ExtMfc_XP_COLOR_SHIFT+4,
- XPCLR_HILIGHT_BORDER_SELECTED = __ExtMfc_XP_COLOR_SHIFT+5,
- XPCLR_RARELY_BORDER = __ExtMfc_XP_COLOR_SHIFT+6,
- XPCLR_PUSHEDHOVERTEXT = __ExtMfc_XP_COLOR_SHIFT+7,
- XPCLR_MENU_BORDER = __ExtMfc_XP_COLOR_SHIFT+8,
- XPCLR_3DFACE_FLOAT_R = __ExtMfc_XP_COLOR_SHIFT+9,
- XPCLR_3DFACE_FLOAT_F = __ExtMfc_XP_COLOR_SHIFT+10,
- XPCLR_TEXT_FIELD_BORDER_NORMAL = __ExtMfc_XP_COLOR_SHIFT+11,
- XPCLR_TEXT_FIELD_BORDER_DISABLED= __ExtMfc_XP_COLOR_SHIFT+12,
- XPCLR_GRIPPER = __ExtMfc_XP_COLOR_SHIFT+13,
- };
- virtual bool IsMenuMustCombineExcludeArea(
- const CObject * pMenuTrackerObject = NULL
- ) const;
- virtual bool IsToolBarChevronMenuCombined();
- virtual void PaintMenuCombinedArea(
- CDC & dc,
- const RECT & rcArea,
- const RECT & rcClient,
- int eCombineAlign, // CExtPopupMenuWnd::e_combine_align_t values
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintDockingCaptionButton(
- CDC & dc,
- CExtPaintManager::PAINTDOCKINGCAPTIONBUTTONDATA & _pdcbd
- );
- virtual COLORREF GetMenuFrameFillColor(
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintControlBarBorders(
- CDC & dc,
- CExtPaintManager::PAINTCONTROLBARBORDERSDATA & _pcbbd
- );
- #if (!defined __EXT_MFC_NO_TAB_CTRL)
- virtual void PaintTabItem(
- CDC & dc,
- CRect & rcTabItemsArea,
- bool bTopLeft,
- bool bHorz,
- bool bSelected,
- bool bCenteredText,
- bool bGroupedMode,
- bool bInGroupActive,
- bool bInvertedVerticalMode,
- const CRect & rcEntireItem,
- CSize sizeTextMeasured,
- CFont * pFont,
- __EXT_MFC_SAFE_LPCTSTR sText,
- CExtCmdIcon * pIcon,
- CObject * pHelperSrc,
- LPARAM lParam = 0L,
- COLORREF clrForceText = COLORREF(-1L),
- COLORREF clrForceTabBk = COLORREF(-1L),
- COLORREF clrForceTabBorderLT = COLORREF(-1L),
- COLORREF clrForceTabBorderRB = COLORREF(-1L),
- COLORREF clrForceTabSeparator = COLORREF(-1L),
- bool bDwmMode = false
- );
- virtual void PaintTabClientArea(
- CDC & dc,
- CRect & rcClient,
- CRect & rcTabItemsArea,
- CRect & rcTabNearBorderArea,
- DWORD dwOrientation,
- bool bGroupedMode,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintTabButton(
- CDC & dc,
- CRect & rcButton,
- LONG nHitTest,
- bool bTopLeft,
- bool bHorz,
- bool bEnabled,
- bool bHover,
- bool bPushed,
- bool bGroupedMode,
- CObject * pHelperSrc,
- LPARAM lParam = 0L,
- bool bFlat = false
- );
- virtual void PaintTabNcAreaRect(
- CDC & dc,
- const RECT & rc,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // #if (!defined __EXT_MFC_NO_TAB_CTRL)
- virtual void PaintResizableBarChildNcAreaRect(
- CDC & dc,
- const RECT & rc,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #if (!defined __EXT_MFC_NO_SHORTCUTLIST_CTRL)
- virtual void PaintShortcutListBkgnd(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintShortcutListItem(
- CDC & dc,
- CExtPaintManager::PAINTSHORTCUTLISTITEMSDATA & _pslid
- );
- #endif // (!defined __EXT_MFC_NO_SHORTCUTLIST_CTRL)
- virtual void PaintToolbarTextField(
- CDC & dc,
- PAINTTOOLBARTEXTFIELDDATA & _ptbtfd
- );
- virtual COLORREF GetIconAlphaColor() const;
- virtual double GetIconAlphaAdjustPercent() const;
- virtual bool AdjustIcon(
- CExtCmdIcon * pIcon
- );
- virtual CSize FixedBar_GetRoundedAreaMerics() const;
-
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- virtual void PaintPageNavigatorBorder(
- CDC & dc,
- const RECT & rcControl
- );
- virtual void PaintPageNavigatorItem(
- CDC & dc,
- const CRect & rcItem,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- CExtCmdIcon * pIcon,
- bool bExpanded,
- bool bSelected,
- bool bPushed,
- bool bHover
- );
- virtual void PaintPageNavigatorSplitter(
- CDC & dc,
- const CRect & rcSplitter,
- bool bDrawDots = true
- );
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- #if (!defined __EXT_MFC_NO_TASK_PANE )
- virtual void TaskPanePaintBorder(
- CDC & dc,
- const RECT & rcClient,
- CObject * pHelperSrc
- );
- virtual void TaskPanePaintGroupCaption(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- bool bHover,
- bool bPressed,
- bool bHighlighted,
- bool bPaintExpandButton,
- bool bExpanded,
- CObject * pHelperSrc
- );
- virtual LONG TaskPaneQueryGroupCaptionMinHeight() const;
- virtual CRect TaskPaneQueryGroupCaptionTextMargins() const;
- #endif // (!defined __EXT_MFC_NO_TASK_PANE )
- #if (!defined __EXT_MFC_NO_DATE_PICKER)
- virtual void PaintDatePickerBorder(
- CDC & dc,
- const RECT & rcControl,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void PaintDatePickerHeaderBackground(
- INT nCol,
- INT nRow,
- CDC & dc,
- INT nYear,
- INT nMonth,
- const RECT & rcHeader,
- const RECT & rcHeaderWithoutBorders,
- const RECT & rcHeaderDate,
- const RECT & rcScrollBtnBackward,
- const RECT & rcScrollBtnForward,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // (!defined __EXT_MFC_NO_DATE_PICKER)
- #ifndef __EXT_MFC_NO_UNDO_REDO_POPUP
- virtual void PaintUndoRedoCaption(
- CDC & dc,
- const CRect & rcCaption,
- __EXT_MFC_SAFE_LPCTSTR strCaption,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // __EXT_MFC_NO_UNDO_REDO_POPUP
- #if( !defined __EXT_MFC_NO_SPIN || !defined __EXT_MFC_NO_DURATIONWND )
- virtual void PaintSpinButton(
- CDC & dc,
- const CRect & rcButton,
- bool bUp,
- bool bHorz,
- bool bEnabled,
- bool bFlat,
- bool bDrawBorder,
- bool bPushed,
- bool bHover,
- bool bHotTrack,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- #endif // #if( !defined __EXT_MFC_NO_SPIN || !defined __EXT_MFC_NO_DURATIONWND )
- #if (!defined __EXT_MFC_NO_DOCK_MARKERS)
- virtual void DockMarker_AdjustBmps(
- eDockMarkerType_t eDockMarkerType,
- CExtBitmap & bmpIn,
- COLORREF clrTransparentIn,
- CExtBitmap & bmpOut,
- COLORREF clrTransparentOut
- );
- #endif // (!defined __EXT_MFC_NO_DOCK_MARKERS)
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- virtual CRect Ribbon_GetPopupGroupBorderMetrics(
- const CExtRibbonPage * pRibbonPage,
- LPARAM lParam = 0L
- );
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- // header control
- virtual void Header_PaintBackground(
- CDC & dc,
- CRect rc,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- virtual void Header_PaintItem(
- CDC & dc,
- CRect rcItemEntire,
- CRect rcItemData,
- CRect rcIcon,
- CRect rcText,
- CRect rcSortArrow,
- CRect rcButton,
- CRect rcButtonIcon,
- bool bSorted,
- bool bSortedAscending,
- INT nColNo,
- INT nColCount,
- const CExtCmdIcon & iconItem,
- const CExtCmdIcon & iconButton,
- bool bHover,
- bool bPressed,
- bool bButtonEvent,
- __EXT_MFC_SAFE_LPCTSTR strItemText,
- CObject * pHelperSrc,
- LPARAM lParam = 0L
- );
- }; // class CExtPaintManagerXP
- class __PROF_UIS_API CExtPaintManagerOffice2003 : public CExtPaintManagerXP
- {
- protected:
- int m_nIdxClrTbFillMargin;
- public:
- DECLARE_SERIAL( CExtPaintManagerOffice2003 );
- // construction/destruction
- CExtPaintManagerOffice2003();
- virtual ~CExtPaintManagerOffice2003();
- virtual e_paint_manager_name_t OnQueryPaintManagerName()
- {
- ASSERT_VALID( this );
- return Office2003;
- }
- #ifndef __EXT_MFC_NO_TAB_ONENOTE_CTRL
- virtual void TabOneNoteWnd_DrawClientArea(
- CDC & dc,
- CRect & rcClient,
- CObject * pHelperSrc = NULL,
- LPARAM lParam = 0L
- );
- virtual void GetTabOneNoteItemColors(
- bool bSelected,
- bool bHover,
- bool bEnabled,
- COLORREF &clrBorderLight,
- COLORREF &clrBorderDark,
- COLORREF &clrBkLight,
- COLORREF &clrBkDark,
- COLORREF &clrText
- );
- #endif // __EXT_MFC_NO_TAB_ONENOTE_CTRL
- #ifndef __EXT_MFC_NO_TAB_WHIDBEY_CTRL
- virtual void GetTabWhidbeyItemColors(
- bool bSelected,
- bool bHover,
- bool bEnabled,
- COLORREF &clrBorder,
- COLORREF &clrBkLight,
- COLORREF &clrBkDark,
- COLORREF &clrText
- );
- #endif // __EXT_MFC_NO_TAB_WHIDBEY_CTRL
- virtual bool OnQueryThemeColors(
- COLORREF *pclrFillHint,
- COLORREF *pclrAccentHint = NULL
- );
- virtual bool OnQueryUseThemeColors() const;
- virtual void OnPaintToolBarGradient(
- CDC & dc,
- CRect rcPaintGradient,
- bool bHorz,
- CObject * pHelperSrc,
- LPARAM lParam = 0L,
- COLORREF clrLeft = COLORREF(-1L),
- COLORREF clrRight = COLORREF(-1L)
- ) const;
- virtual COLORREF GetShadowAdjustColor();
- virtual void FixedBar_AdjustClientRect(
- const CExtControlBar * pBar,
- CRect & rcPreCalc
- );
- virtual INT FixedBar_GetRowDistance(
- const CExtToolControlBar * pBar
- );