ExtPaintManager.cpp
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:1653k
- m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_OBSIDIAN) ) );
- m_bmpRibbonMenuResizingGripperV.Make32();
- m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
- VERIFY(
- m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R1)
- )
- );
- m_bmpRibbonModeMenuBorder.Make32();
- m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrMenuCaptionText = RGB(57,60,63);
- m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
- VERIFY(
- m_bmpMenuCaptionBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R1)
- )
- );
- m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
- VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R1) ) );
- m_bmpRibbonFileMenuBigBorder.Make32();
- m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
-
- m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
- // VERIFY(
- // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R1)
- // )
- // );
- // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
- // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY(
- m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
- )
- );
- m_bmpRibbonFileMenuOptionsButtonHot.Make32();
- m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R1) ) );
- m_bmpResizingGripper.Make32();
- m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // spin bitmaps
- VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
- VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
- }
- CExtPaintManagerOffice2010_R1::~CExtPaintManagerOffice2010_R1()
- {
- }
- CExtPaintManagerOffice2010_R2_Blue::CExtPaintManagerOffice2010_R2_Blue()
- {
- m_bThemedMenuItemsEverywhere = true;
- m_clrFillHint = RGB(192,211,235);
- m_clrAccentHint = RGB(255,227,140); // RGB(156,193,234);
- m_clrIconAlphaColor = RGB(114,121,138);
- m_clrAdvTipGradientBottom = RGB(229,229,240);
- VERIFY( m_arrMdiRightIcons[0].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_MINIMIZE) ) );
- VERIFY( m_arrMdiRightIcons[1].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_RESTORE) ) );
- VERIFY( m_arrMdiRightIcons[2].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_CLOSE) ) );
- // m_clrDCA1 = RGB(192,211,235);
- // m_clrDCA2 = RGB(192,211,235);
- // m_clrDCA3 = RGB(192,211,235);
- // m_bDocumentClientAreaBkgndR2 = true;
- VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_DCA_R2_BLUE) ) );
- // m_bmpDCA.PreMultiplyRGBChannels();
- // m_bmpDCA.PreMultipliedRGBChannelsSet( true );
- // m_clrDCA_Solid = RGB(192,211,235);
- m_bUseNcFrameBmpForDockerBkgnd = true;
- m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
- m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
- m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(83,96,125);
- m_clrDockingFrameCaptionTextActive = RGB(51,51,51);
- m_clrDockingFrameCaptionTextInactive = RGB(51,51,51);
- m_clrDockingFrameCaptionTextFloatingFixed = RGB(255,255,255);
- m_clrDockingCaptionShapeFixedNormal = RGB(255,255,255);
- m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
- m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
- m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
- VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_ACTIVE_R2_BLUE) ) );
- VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_INACTIVE_R2_BLUE) ) );
- VERIFY( m_bmpNcFrameActive.Make32() );
- VERIFY( m_bmpNcFrameInactive.Make32() );
- m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
- m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
- m_clrNcFrameTextActive = RGB(69,69,69); // = RGB(123,123,123);
- m_clrNcFrameTextInactive = RGB(163,163,163); // = RGB(183,183,183);
- m_bmpNcFrameActive.PreMultiplyRGBChannels();
- m_bmpNcFrameActive.PreMultipliedRGBChannelsSet( true );
- m_bmpNcFrameInactive.PreMultiplyRGBChannels();
- m_bmpNcFrameInactive.PreMultipliedRGBChannelsSet( true );
- m_sizeNcButtonShapeInArr.cx = m_sizeNcButtonShapeInArr.cy = 21;
- m_nNcBtnIdxNormalActive = m_nNcBtnIdxNormalInactive = 0;
- m_rcNcButtonBkPadding.SetRect( 4, 4, 4, 4 );
- VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_R2_BLUE) ) );
- VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_R2_BLUE) ) );
- VERIFY( m_bmpNcButtonBkHover.Make32() );
- VERIFY( m_bmpNcButtonBkPressed.Make32() );
- m_bmpNcButtonBkHover.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkPressed.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkHover.PreMultiplyRGBChannels();
- m_bmpNcButtonBkHover.PreMultipliedRGBChannelsSet( true );
- m_bmpNcButtonBkPressed.PreMultiplyRGBChannels();
- m_bmpNcButtonBkPressed.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpNcButtonBkHoverX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_X_R2_BLUE) ) );
- VERIFY( m_bmpNcButtonBkPressedX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_X_R2_BLUE) ) );
- VERIFY( m_bmpNcButtonBkHoverX.Make32() );
- VERIFY( m_bmpNcButtonBkPressedX.Make32() );
- m_bmpNcButtonBkHoverX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkPressedX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkHoverX.PreMultiplyRGBChannels();
- m_bmpNcButtonBkHoverX.PreMultipliedRGBChannelsSet( true );
- m_bmpNcButtonBkPressedX.PreMultiplyRGBChannels();
- m_bmpNcButtonBkPressedX.PreMultipliedRGBChannelsSet( true );
- m_sizeNcButtonShapeInArr.cx = 13;
- m_sizeNcButtonShapeInArr.cy = 12;
- m_nNcBtnIdxNormalActive = 0;
- m_nNcBtnIdxHover = 1;
- m_nNcBtnIdxPressed = 2;
- m_nNcBtnIdxNormalInactive = 3;
- m_nNcBtnIdxDisabled = 4;
- VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_CLOSE_R2_BLUE) ) );
- // m_bmpArrNcButtonsClose.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsClose.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MAXIMIZE_R2_BLUE) ) );
- // m_bmpArrNcButtonsMaximize.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsMaximize.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_RESTORE_R2_BLUE) ) );
- // m_bmpArrNcButtonsRestore.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsRestore.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MINIMIZE_R2_BLUE) ) );
- // m_bmpArrNcButtonsMinimize.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsMinimize.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_HELP_R1) ) );
- m_bmpArrNcButtonsHelp.PreMultiplyRGBChannels();
- #if (!defined __EXT_MFC_NO_STATUSBAR)
- m_clrStatusPaneTextColorNormal = RGB(35,30,66);
- m_clrStatusPaneTextColorDisabled = RGB(136,142,149);
- m_rcStatusBkPadding.SetRect( 0, 2, 0, 1 );
- VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_LIGHT_R2_BLUE) ) );
- VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_DARK_R2_BLUE) ) );
- m_rcStatusSeparatorPadding.SetRect( 0, 2, 0, 1 );
- VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_SEPARATOR_R2_BLUE) ) );
- #endif // (!defined __EXT_MFC_NO_STATUSBAR)
- #if (!defined __EXT_MFC_NO_TAB_CTRL)
- m_clrTabTextNormal = m_clrTabTextSelected = RGB( 52, 52, 64 );
- m_clrTabTextNormalDWM = m_clrTabTextSelectedDWM = RGB( 30, 57, 91 );
- m_nIdxTabShapeHover = 0;
- m_nIdxTabShapePressed = 1;
- m_nIdxTabShapeSelected = 1;
- m_nIdxTabShapeSelectedHover = 1;
- m_arrSizeTabShape[__ETSOI_TOP].cx
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
- = m_arrSizeTabShape[__ETSOI_LEFT].cy
- = m_arrSizeTabShape[__ETSOI_RIGHT].cy
- = 13;
- m_arrSizeTabShape[__ETSOI_TOP].cy
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
- = m_arrSizeTabShape[__ETSOI_LEFT].cx
- = m_arrSizeTabShape[__ETSOI_RIGHT].cx
- = 23;
- m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 4, 3, 4, 3 );
- m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 4, 3, 4, 3 );
- m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 4, 3, 4 );
- m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 4, 3, 4 );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_R2_BLUE )
- )
- );
- m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 180,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 270,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 90,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_SEL_AREA_R2_BLUE )
- )
- );
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 180,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 270,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 90,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
- m_arrTabAreaMargins[__ETSOI_TOP] = 1;
- m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
- m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
- m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
- m_arrSizeTabSeparator[__ETSOI_TOP].cx
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
- = 2;
- m_arrSizeTabSeparator[__ETSOI_TOP].cy
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
- = 23;
- m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
- m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SEPARATOR_R2_BLUE )
- )
- );
- VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
- // m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
- // m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 180,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 270,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 90,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
- VERIFY(
- m_bmpArrStatesCheckBox.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_CHECK_BOX_R1 )
- )
- );
- VERIFY(
- m_bmpArrStatesRadioButton.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_RADIO_BUTTON_R1 )
- )
- );
- m_clrMenuItemLeftAreaMarginL = RGB(226, 228, 231);
- m_clrMenuItemLeftAreaMarginR = RGB(245, 245, 245);
- m_rcMenuItemPaddingLargeLeft.SetRect( 3, 3, 3, 16 );
- m_rcMenuItemPaddingLargeRight.SetRect( 1, 3, 3, 16 );
- m_rcMenuItemPaddingSmallLeft.SetRect( 3, 3, 3, 10 );
- m_rcMenuItemPaddingSmallRight.SetRect( 1, 3, 3, 10 );
- VERIFY(
- m_bmpMenuItemLargeLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_LEFT )
- )
- );
- VERIFY(
- m_bmpMenuItemLargeRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_RIGHT )
- )
- );
- VERIFY(
- m_bmpMenuItemSmallLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_LEFT )
- )
- );
- VERIFY(
- m_bmpMenuItemSmallRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_RIGHT )
- )
- );
- VERIFY(
- m_bmpMenuArrow.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_ARROW )
- )
- );
- m_sizeMenuCheckAreaChecked.cx = 16;
- m_sizeMenuCheckAreaChecked.cy = 16;
- m_sizeMenuCheckAreaUnchecked.cx = 20;
- m_sizeMenuCheckAreaUnchecked.cy = 20;
- m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 1, 1, 1, 1 );
- VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_CHECKED_R1 ) ) );
- VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_UNCHECKED_R1 ) ) );
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_arrClrPnCaptNormal[0] = RGB(235,238,250);
- m_arrClrPnCaptNormal[1] = RGB(215,219,229);
- m_arrClrPnCaptNormal[2] = RGB(197,199,209);
- m_arrClrPnCaptNormal[3] = RGB(212,216,226);
- m_arrClrPnSplitter[0] = RGB( 219, 235, 255 );
- m_arrClrPnSplitter[1] = RGB( 198, 216, 237 );
- m_clrPnCaptText = RGB( 30, 57, 91 );
- m_arrClrPnItemText[0] = RGB(0,0,0);
- m_arrClrPnItemText[1] = RGB(76,83,92);
- m_clrPnConfigButton = RGB(101,104,112);
- static const UINT g_arrResIdPnItemExpanded[ePn_Count] =
- {
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_NORMAL_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_HOVER_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_PRESSED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_HOVER_R1,
- };
- static const UINT g_arrResIdPnItemCollapsed[ePn_Count] =
- {
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_NORMAL_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_HOVER_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_PRESSED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_HOVER_R1,
- };
- INT nPnIndex;
- for( nPnIndex = 0; nPnIndex < INT(ePn_Count); nPnIndex ++ )
- {
- VERIFY( m_arrBmpPnItemExpanded[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemExpanded[nPnIndex]) ) );
- VERIFY( m_arrBmpPnItemCollapsed[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemCollapsed[nPnIndex]) ) );
- m_arrRcPnItemPaddingExpanded[nPnIndex].SetRect( 0, 2, 0, 2 );
- m_arrRcPnItemPaddingCollapsed[nPnIndex].SetRect( 0, 0, 0, 0 );
- m_arrClrPnItemTextBmpVer[nPnIndex] = RGB(0,0,0);
- }
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_COMBO_BOX_BUTTON_R2_BLUE ) ) );
- m_bmpArrComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
- m_arrClrComboBoxBorder[0] = RGB(212,214,217);
- m_arrClrComboBoxBorder[1] = RGB(164,164,164);
- m_arrClrComboBoxBorder[2] = RGB(164,164,164);
- m_arrClrComboBoxBorder[3] = RGB(228,231,235);
- CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
- CRect rcEntirePaddingRH( 2, 2, 2, 2 ), rcEntirePaddingRV( 2, 2, 2, 2 );
- CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
- m_SbSkinDataT_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
- RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_TOP
- );
- m_SbSkinDataB_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
- RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_BOTTOM
- );
- m_SbSkinDataL_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
- RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_LEFT
- );
- m_SbSkinDataR_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
- RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_RIGHT
- );
- m_SbSkinDataH_Light.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_HORZ_LIGHT,
- 16,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_HORZ,
- SbSkinDataPaddingH,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
- true,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_LIGHT,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Light.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_VERT_LIGHT,
- 17,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_VERT,
- SbSkinDataPaddingV,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
- false,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_LIGHT,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_SbSkinDataH_Dark.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_HORZ_DARK,
- 16,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLUE_HORZ,
- SbSkinDataPaddingH,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLUE,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLUE,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLUE,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLUE,
- true,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_DARK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_DARK,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Dark.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_VERT_DARK,
- 17,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLUE_VERT,
- SbSkinDataPaddingV,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLUE,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLUE,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLUE,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLUE,
- false,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_DARK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_DARK,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_clrGridHeaderBkTop = RGB(253,253,253);
- m_clrGridHeaderBkBottom = RGB(212,215,220);
- m_clrGridHeaderSeparator = RGB(145,153,164);
- m_clrGridHeaderSortArrow = RGB(145,153,164);
- m_clrGridHeaderBorder = RGB(145,153,164);
- m_clrRgHeaderBkTop = RGB(253,253,253);
- m_clrRgHeaderBkBottom = RGB(212,215,220);
- m_clrRgHeaderSeparator = RGB(145,153,164);
- m_clrRgHeaderSortArrow = RGB(145,153,164);
- m_clrRgHeaderText = RGB(0,0,0);
- m_clrRgHeaderBorder = RGB(76,83,92);
- #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
- m_clrRgGroupAreaBk = RGB(235,235,235);
- m_clrRgGroupAreaText = RGB(70,70,70);
- #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
- m_nPushBtnSimpleGlyphHeightH = 43;
- m_nPushBtnSimpleGlyphHeightV = 43;
- m_nPushBtnSDDLeftGlyphHeightH = 43;
- m_nPushBtnSDDLeftGlyphHeightV = 43;
- m_nPushBtnSDDRightGlyphHeightH = 43;
- m_nPushBtnSDDRightGlyphHeightV = 9;
- m_rcPushBtnSimplePaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSimplePaddingV.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDLeftPaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDLeftPaddingV.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDRightPaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDRightPaddingV.SetRect( 3, 3, 3, 3 );
- VERIFY(
- m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_SIMPLE )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_LEFT_PART )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_RIGHT_PART )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
- m_arrBmpPushBtnSimpleH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSimpleH.GetSize().cx,
- m_nPushBtnSimpleGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDLeftH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDLeftH.GetSize().cx,
- m_nPushBtnSDDLeftGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDRightH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDRightH.GetSize().cx,
- m_nPushBtnSDDRightGlyphHeightH,
- false,
- false
- )
- );
- m_arrBmpPushBtnSimpleV.PreMultipliedRGBChannelsSet( true );
- m_arrBmpPushBtnSDDLeftV.PreMultipliedRGBChannelsSet( true );
- m_arrBmpPushBtnSDDRightV.PreMultipliedRGBChannelsSet( true );
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- if( g_PaintManager.m_bIsWinVistaOrLater )
- {
- VERIFY( m_bmpRibbonTabAreaBlur.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TAB_AREA_DWM_BLUR) ) );
- m_rcRibbonTabAreaBlurPadding.SetRect( 35, 0, 35, 36 );
- }
- m_clrRibbonTabClientAreaActive = RGB(192,211,235);
- m_clrRibbonTabClientAreaInactive = RGB(223,235,247);
- m_clrContractedMargin1 = RGB(128,128,128);
- m_clrContractedMargin2 = RGB(223,235,247);
- m_bRibbonGroupCaptionAtTop = false;
- m_bRibbonGroupCaptionAreaHasPadding = true;
- m_nRibbonGroupCaptionAreaHeightExpanded = 16;
- m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
- m_nRibbonGroupIconBkVertOffset = 2;
- m_nRibbonCaptionPartHeight = 17;
- m_rcRibbonPageOuterContentPadding.SetRect( 0, 0, 0, 0 );
- m_clrRibbonComboBackGroundNormal = RGB(255,255,255);
- m_clrRibbonComboBackGroundDisabled = RGB(255,255,255);
- m_nRibbonTabIntersectionHeight = 1;
- //m_nRibbonQuickAccessBarButtonsAlignment = 0;
- m_clrRibbonGroupCaptionTextCollapsed
- = m_clrRibbonButtonNormal
- = RGB(57,60,63);
- m_clrRibbonButtonDisabled = RGB(128,128,128);
- m_clrRibbonGroupCaptionTextExpanded = RGB( 52, 52, 64 );
- //m_clrRibbonGroupCaptionTextShadowExpanded = RGB( 0, 0, 0 );
- //m_sizeRibbonGroupCaptionTextOffset = CSize( 1, 1 );
- m_nRibbonGroupCaptionTextDF
- = m_nRibbonGroupCaptionTextShadowDF
- = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
- m_rcRibbonPageBkPadding.SetRect( 1, 1, 1, 1 );
- VERIFY(
- m_bmpRibbonPageBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_PAGE_BK_R2_BLUE)
- )
- );
-
- m_rcRibbonGroupPaddingBkExpanded.SetRect( 2, 6, 4, 2 );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_BLUE)
- )
- );
- m_bmpRibbonGroupBkExpanded[0].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_BLUE)
- )
- );
- m_bmpRibbonGroupBkExpanded[1].PreMultipliedRGBChannelsSet( false );
- m_rcRibbonGroupPaddingBkCollapsed.SetRect( 2, 6, 4, 2 );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_BLUE)
- )
- );
- m_bmpRibbonGroupBkCollapsed[0].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLUE)
- )
- );
- m_bmpRibbonGroupBkCollapsed[1].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_BLUE)
- )
- );
- m_bmpRibbonGroupBkCollapsed[2].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource( // selected same as hover in R1
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLUE)
- )
- );
- m_bmpRibbonGroupBkCollapsed[3].PreMultipliedRGBChannelsSet( false );
- //INT nBkIndex, nBkCount;
- // nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
- // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // {
- // m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
- // m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
- // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // {
- // m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
- // m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- VERIFY( m_bmpRibbonGroupBkQATB[0].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_NORMAL_BK_R2_BLUE) ) );
- //m_bmpRibbonGroupBkQATB[0].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[0].Make32() );
- m_bmpRibbonGroupBkQATB[0].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- VERIFY( m_bmpRibbonGroupBkQATB[1].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_HOVER_BK_R2_BLUE) ) );
- //m_bmpRibbonGroupBkQATB[1].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[1].Make32() );
- m_bmpRibbonGroupBkQATB[1].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- VERIFY( m_bmpRibbonGroupBkQATB[2].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_PRESSED_BK_R2_BLUE) ) );
- //m_bmpRibbonGroupBkQATB[2].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[2].Make32() );
- m_bmpRibbonGroupBkQATB[2].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- m_bmpRibbonGroupBkQATB[3] = m_bmpRibbonGroupBkQATB[1];
- m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
- m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
- m_rcRibbonSeparatorPaddingH.SetRect( 0, 0, 0, 0 );
- VERIFY(
- m_bmpRibbonSeparatorH.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_H_R2_BLUE)
- )
- );
- VERIFY( m_bmpRibbonSeparatorH.Make32() );
- m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonSeparatorPaddingV.SetRect( 0, 0, 0, 0 );
- VERIFY(
- m_bmpRibbonSeparatorV.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_V_R2_BLUE)
- )
- );
- VERIFY( m_bmpRibbonSeparatorV.Make32() );
- m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonPaddingQACEB.SetRect( 3, 3, 3, 3 );
- m_nRibbonHeightOfQACEB = 22;
- m_nIdxRibbonQACEB_Normal = 3;
- m_nIdxRibbonQACEB_Hover = 0;
- m_nIdxRibbonQACEB_Pressed = 1;
- m_nIdxRibbonQACEB_Selected = 2;
- VERIFY(
- m_bmpArrRibbonQACEB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_CEB_R2_BLUE)
- )
- );
- m_bmpArrRibbonQACEB.PreMultiplyRGBChannels( false );
- //m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
- m_nRibbonEmbeddedCaptionTextAlignmentFlags = (DT_SINGLELINE|DT_CENTER|DT_VCENTER);
- //m_bRibbonFileButtonItegrationSupported = false;
- //m_nRibbonFileButtonMenuIntersectionHeight = 20;
- m_nQatbAdditionalSpaceAtRightDWM = 0;
- // INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
- // INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
- // CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
- m_rcRibbonNcCornerLeftCP.SetRect( 53, 2, 2, 2 );
- m_rcRibbonNcCornerRightCP.SetRect( 2, 2, 42, 2 );
- VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_FILE_BUTTON) ) );
- //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
- m_bmpArrRibbonFileButton.PreMultiplyRGBChannels( true );
- m_nRibbonFileButtonHeight = m_bmpArrRibbonFileButton.GetSize().cy / 3;
- m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 2, 2, 2, 2 );
- VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_BK_R2_BLUE) ) );
- m_nRibbonHeightOfOneDLB = 14;
- m_nDlbIdxDisabled = m_nDlbIdxNormal = 0;
- m_nDlbIdxHover = 1;
- m_nDlbIdxPressed = 2;
- rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
- VERIFY( m_arrBmpRibbonDLB.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_GCB_R2_BLUE) ) );
- //m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
- m_arrBmpRibbonDLB.PreMultiplyRGBChannels( false );
- m_clrRibbonGalleryInplaceBorderNormal = m_clrRibbonGalleryInplaceBorderHover = RGB(198,202,205);
- m_clrRibbonGalleryInplaceBkgndNormal = m_clrRibbonGalleryInplaceBkgndHover = RGB(255,255,255);
- m_rcRibbonGalleryScrollFill = RGB(255,255,255);
- m_rcRibbonGalleryScrollButtonPadding.SetRect( 3, 3, 3, 3 );
- m_nHeightRibbonGalleryScrollButton = -1; //20;
- m_nIndexRibbonGalleryScrollButtonNormal = 0;
- m_nIndexRibbonGalleryScrollButtonHover = 1;
- m_nIndexRibbonGalleryScrollButtonPressed = 2;
- m_nIndexRibbonGalleryScrollButtonDisabled = 3;
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_DOWN_R2_BLUE)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonDown.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_UP_R2_BLUE)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonUp.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_MENU_R2_BLUE)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonMenu.PreMultipliedRGBChannelsSet( true );
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_DDA_R1) ) );
- VERIFY( m_bmpRibbonDDA.Make32() );
- m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonPaddingComboBoxDropDown.SetRect( 2, 2, 2, 2 );
- VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_COMBO_BOX_BUTTON_R1) ) );
- m_bmpArrRibbonComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
- // buttons 2010
- m_nHeightOfButtonLSM = 66;
- m_nHeightOfButtonLSXM = 39;
- m_nHeightOfButtonLSXB = 27;
- // tool buttons 2010
- m_rcPaddingOfButtonTS.SetRect( 3, 3, 3, 3 );
- m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonSS.SetRect( 3, 3, 3, 3 );
- m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
- m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonLSM.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 4;
- // m_rcPaddingOfButtonLSB.SetRect( 4, 4, 4, 4 );
- // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
- // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
- // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 3;
- // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonLSXM.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 5;
- m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 3;
- m_rcPaddingOfButtonLSXB.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 0;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 5;
- m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 3;
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_LEFT_R1)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_RIGHT_R1)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
- if( ! m_bmpArrButtonSS_simple.IsEmpty() )
- {
- CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
- INT nY = 0, nXRange = _sizeBmp.cx / 2;
- for( ; nY < _sizeBmp.cy; nY ++ )
- {
- INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
- for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
- {
- RGBQUAD _pixel;
- VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
- VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
- } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
- } // for( ; nY < _sizeBmp.cy; nY ++ )
- } // if( m_bmpArrButtonSS_simple.IsEmpty() )
- VERIFY(
- m_bmpArrButtonLSM.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_ALL_R1)
- )
- );
- m_bmpArrButtonLSM.PreMultipliedRGBChannelsSet( true );
- // VERIFY(
- // m_bmpArrButtonLSB.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R2_BLUE)
- // )
- // );
- // m_bmpArrButtonLSB.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonLSXM.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_TOP_R1)
- )
- );
- m_bmpArrButtonLSXM.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonLSXB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R1)
- )
- );
- m_bmpArrButtonLSXB.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_HOVER_R2_BLUE)
- )
- );
- m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_PRESSED_R2_BLUE)
- )
- );
- m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_HOVER_R1)
- )
- );
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].Make32();
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY(
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_PRESSED_R1)
- )
- );
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].Make32();
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpRibbonMenuResizingMarginHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_HV_LUNA_BLUE) ) );
- VERIFY( m_bmpRibbonMenuResizingMarginV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_V_LUNA_BLUE) ) );
- VERIFY( m_bmpRibbonMenuResizingGripperHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_HV_LUNA_BLUE) ) );
- m_bmpRibbonMenuResizingGripperHV.Make32();
- m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_LUNA_BLUE) ) );
- m_bmpRibbonMenuResizingGripperV.Make32();
- m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
- VERIFY(
- m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R2_BLUE)
- )
- );
- m_bmpRibbonModeMenuBorder.Make32();
- m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrMenuCaptionText = RGB(57,60,63);
- m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
- VERIFY(
- m_bmpMenuCaptionBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R2_BLUE)
- )
- );
- m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
- VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R2_BLUE) ) );
- m_bmpRibbonFileMenuBigBorder.Make32();
- m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
-
- m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
- // VERIFY(
- // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R2_BLUE)
- // )
- // );
- // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
- // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY(
- m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
- )
- );
- m_bmpRibbonFileMenuOptionsButtonHot.Make32();
- m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R2_BLUE) ) );
- m_bmpResizingGripper.Make32();
- m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // spin bitmaps
- VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
- VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
- }
- CExtPaintManagerOffice2010_R2_Blue::~CExtPaintManagerOffice2010_R2_Blue()
- {
- }
- CExtPaintManagerOffice2010_R2_Silver::CExtPaintManagerOffice2010_R2_Silver()
- {
- m_bThemedMenuItemsEverywhere = true;
- m_clrFillHint = RGB(233,235,238);
- m_clrAccentHint = RGB(255,227,140); // RGB(156,193,234);
- m_clrIconAlphaColor = RGB(114,121,138);
- m_clrAdvTipGradientBottom = RGB(229,229,240);
- VERIFY( m_arrMdiRightIcons[0].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_MINIMIZE) ) );
- VERIFY( m_arrMdiRightIcons[1].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_RESTORE) ) );
- VERIFY( m_arrMdiRightIcons[2].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_CLOSE) ) );
- // m_clrDCA1 = RGB(234,237,239);
- // m_clrDCA2 = RGB(234,237,239);
- // m_clrDCA3 = RGB(234,237,239);
- // m_bDocumentClientAreaBkgndR2 = true;
- VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_DCA_R2_SILVER) ) );
- // m_bmpDCA.PreMultiplyRGBChannels();
- // m_bmpDCA.PreMultipliedRGBChannelsSet( true );
- // m_clrDCA_Solid = RGB(234,237,239);
- m_bUseNcFrameBmpForDockerBkgnd = true;
- m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
- m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
- m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(83,96,125);
- m_clrDockingFrameCaptionTextActive = RGB(51,51,51);
- m_clrDockingFrameCaptionTextInactive = RGB(51,51,51);
- m_clrDockingFrameCaptionTextFloatingFixed = RGB(255,255,255);
- m_clrDockingCaptionShapeFixedNormal = RGB(255,255,255);
- m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
- m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
- m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
- VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_ACTIVE_R2_SILVER) ) );
- VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_INACTIVE_R2_SILVER) ) );
- VERIFY( m_bmpNcFrameActive.Make32() );
- VERIFY( m_bmpNcFrameInactive.Make32() );
- m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
- m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
- m_clrNcFrameTextActive = RGB(69,69,69); // = RGB(123,123,123);
- m_clrNcFrameTextInactive = RGB(163,163,163); // = RGB(183,183,183);
- m_bmpNcFrameActive.PreMultiplyRGBChannels();
- m_bmpNcFrameActive.PreMultipliedRGBChannelsSet( true );
- m_bmpNcFrameInactive.PreMultiplyRGBChannels();
- m_bmpNcFrameInactive.PreMultipliedRGBChannelsSet( true );
- m_sizeNcButtonShapeInArr.cx = m_sizeNcButtonShapeInArr.cy = 21;
- m_nNcBtnIdxNormalActive = m_nNcBtnIdxNormalInactive = 0;
- m_rcNcButtonBkPadding.SetRect( 4, 4, 4, 4 );
- VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_R2_SILVER) ) );
- VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_R2_SILVER) ) );
- VERIFY( m_bmpNcButtonBkHover.Make32() );
- VERIFY( m_bmpNcButtonBkPressed.Make32() );
- m_bmpNcButtonBkHover.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkPressed.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkHover.PreMultiplyRGBChannels();
- m_bmpNcButtonBkHover.PreMultipliedRGBChannelsSet( true );
- m_bmpNcButtonBkPressed.PreMultiplyRGBChannels();
- m_bmpNcButtonBkPressed.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpNcButtonBkHoverX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_X_R2_SILVER) ) );
- VERIFY( m_bmpNcButtonBkPressedX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_X_R2_SILVER) ) );
- VERIFY( m_bmpNcButtonBkHoverX.Make32() );
- VERIFY( m_bmpNcButtonBkPressedX.Make32() );
- m_bmpNcButtonBkHoverX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkPressedX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkHoverX.PreMultiplyRGBChannels();
- m_bmpNcButtonBkHoverX.PreMultipliedRGBChannelsSet( true );
- m_bmpNcButtonBkPressedX.PreMultiplyRGBChannels();
- m_bmpNcButtonBkPressedX.PreMultipliedRGBChannelsSet( true );
- m_sizeNcButtonShapeInArr.cx = 13;
- m_sizeNcButtonShapeInArr.cy = 12;
- m_nNcBtnIdxNormalActive = 0;
- m_nNcBtnIdxHover = 1;
- m_nNcBtnIdxPressed = 2;
- m_nNcBtnIdxNormalInactive = 3;
- m_nNcBtnIdxDisabled = 4;
- VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_CLOSE_R2_SILVER) ) );
- // m_bmpArrNcButtonsClose.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsClose.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MAXIMIZE_R2_SILVER) ) );
- // m_bmpArrNcButtonsMaximize.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsMaximize.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_RESTORE_R2_SILVER) ) );
- // m_bmpArrNcButtonsRestore.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsRestore.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MINIMIZE_R2_SILVER) ) );
- // m_bmpArrNcButtonsMinimize.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsMinimize.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_HELP_R1) ) );
- m_bmpArrNcButtonsHelp.PreMultiplyRGBChannels();
- #if (!defined __EXT_MFC_NO_STATUSBAR)
- m_clrStatusPaneTextColorNormal = RGB(51,59,67);
- m_clrStatusPaneTextColorDisabled = RGB(145,149,153);
- m_rcStatusBkPadding.SetRect( 0, 2, 0, 1 );
- VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_LIGHT_R2_SILVER) ) );
- VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_DARK_R2_SILVER) ) );
- m_rcStatusSeparatorPadding.SetRect( 0, 2, 0, 1 );
- VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_SEPARATOR_R2_SILVER) ) );
- #endif // (!defined __EXT_MFC_NO_STATUSBAR)
- #if (!defined __EXT_MFC_NO_TAB_CTRL)
- m_clrTabTextNormal = m_clrTabTextSelected = RGB( 52, 52, 64 );
- m_clrTabTextNormalDWM = m_clrTabTextSelectedDWM = RGB( 76, 83, 92 );
- m_nIdxTabShapeHover = 0;
- m_nIdxTabShapePressed = 1;
- m_nIdxTabShapeSelected = 1;
- m_nIdxTabShapeSelectedHover = 1;
- m_arrSizeTabShape[__ETSOI_TOP].cx
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
- = m_arrSizeTabShape[__ETSOI_LEFT].cy
- = m_arrSizeTabShape[__ETSOI_RIGHT].cy
- = 13;
- m_arrSizeTabShape[__ETSOI_TOP].cy
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
- = m_arrSizeTabShape[__ETSOI_LEFT].cx
- = m_arrSizeTabShape[__ETSOI_RIGHT].cx
- = 23;
- m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 4, 3, 4, 3 );
- m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 4, 3, 4, 3 );
- m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 4, 3, 4 );
- m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 4, 3, 4 );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_R2_SILVER )
- )
- );
- m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 180,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 270,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 90,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_SEL_AREA_R2_SILVER )
- )
- );
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 180,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 270,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 90,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
- m_arrTabAreaMargins[__ETSOI_TOP] = 1;
- m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
- m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
- m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
- m_arrSizeTabSeparator[__ETSOI_TOP].cx
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
- = 2;
- m_arrSizeTabSeparator[__ETSOI_TOP].cy
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
- = 23;
- m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
- m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SEPARATOR_R2_SILVER )
- )
- );
- VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
- // m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
- // m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 180,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 270,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 90,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
- VERIFY(
- m_bmpArrStatesCheckBox.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_CHECK_BOX_R1 )
- )
- );
- VERIFY(
- m_bmpArrStatesRadioButton.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_RADIO_BUTTON_R1 )
- )
- );
- m_clrMenuItemLeftAreaMarginL = RGB(226, 228, 231);
- m_clrMenuItemLeftAreaMarginR = RGB(245, 245, 245);
- m_rcMenuItemPaddingLargeLeft.SetRect( 3, 3, 3, 16 );
- m_rcMenuItemPaddingLargeRight.SetRect( 1, 3, 3, 16 );
- m_rcMenuItemPaddingSmallLeft.SetRect( 3, 3, 3, 10 );
- m_rcMenuItemPaddingSmallRight.SetRect( 1, 3, 3, 10 );
- VERIFY(
- m_bmpMenuItemLargeLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_LEFT )
- )
- );
- VERIFY(
- m_bmpMenuItemLargeRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_RIGHT )
- )
- );
- VERIFY(
- m_bmpMenuItemSmallLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_LEFT )
- )
- );
- VERIFY(
- m_bmpMenuItemSmallRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_RIGHT )
- )
- );
- VERIFY(
- m_bmpMenuArrow.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_ARROW )
- )
- );
- m_sizeMenuCheckAreaChecked.cx = 16;
- m_sizeMenuCheckAreaChecked.cy = 16;
- m_sizeMenuCheckAreaUnchecked.cx = 20;
- m_sizeMenuCheckAreaUnchecked.cy = 20;
- m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 1, 1, 1, 1 );
- VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_CHECKED_R1 ) ) );
- VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_UNCHECKED_R1 ) ) );
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_arrClrPnCaptNormal[0] = RGB(235,238,250);
- m_arrClrPnCaptNormal[1] = RGB(215,219,229);
- m_arrClrPnCaptNormal[2] = RGB(197,199,209);
- m_arrClrPnCaptNormal[3] = RGB(212,216,226);
- m_arrClrPnSplitter[0] = RGB( 240, 243, 247 );
- m_arrClrPnSplitter[1] = RGB( 215, 219, 225 );
- m_clrPnCaptText = RGB( 30, 57, 91 );
- m_arrClrPnItemText[0] = RGB(0,0,0);
- m_arrClrPnItemText[1] = RGB(76,83,92);
- m_clrPnConfigButton = RGB(101,104,112);
- static const UINT g_arrResIdPnItemExpanded[ePn_Count] =
- {
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_NORMAL_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_HOVER_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_PRESSED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_HOVER_R1,
- };
- static const UINT g_arrResIdPnItemCollapsed[ePn_Count] =
- {
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_NORMAL_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_HOVER_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_PRESSED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_HOVER_R1,
- };
- INT nPnIndex;
- for( nPnIndex = 0; nPnIndex < INT(ePn_Count); nPnIndex ++ )
- {
- VERIFY( m_arrBmpPnItemExpanded[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemExpanded[nPnIndex]) ) );
- VERIFY( m_arrBmpPnItemCollapsed[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemCollapsed[nPnIndex]) ) );
- m_arrRcPnItemPaddingExpanded[nPnIndex].SetRect( 0, 2, 0, 2 );
- m_arrRcPnItemPaddingCollapsed[nPnIndex].SetRect( 0, 0, 0, 0 );
- m_arrClrPnItemTextBmpVer[nPnIndex] = RGB(0,0,0);
- }
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_COMBO_BOX_BUTTON_R2_SILVER ) ) );
- m_bmpArrComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
- m_arrClrComboBoxBorder[0] = RGB(212,214,217);
- m_arrClrComboBoxBorder[1] = RGB(164,164,164);
- m_arrClrComboBoxBorder[2] = RGB(164,164,164);
- m_arrClrComboBoxBorder[3] = RGB(228,231,235);
- CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
- CRect rcEntirePaddingRH( 2, 2, 2, 2 ), rcEntirePaddingRV( 2, 2, 2, 2 );
- CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
- m_SbSkinDataT_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
- RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_TOP
- );
- m_SbSkinDataB_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
- RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_BOTTOM
- );
- m_SbSkinDataL_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
- RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_LEFT
- );
- m_SbSkinDataR_Zoom.Load2010_Zoom_R1(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
- RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_RIGHT
- );
- m_SbSkinDataH_Light.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_HORZ_LIGHT,
- 16,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_HORZ,
- SbSkinDataPaddingH,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
- true,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_LIGHT,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Light.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_VERT_LIGHT,
- 17,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_VERT,
- SbSkinDataPaddingV,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_SILVER,
- false,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_LIGHT,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_SbSkinDataH_Dark.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_HORZ_DARK,
- 16,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_SILVER_HORZ,
- SbSkinDataPaddingH,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_SILVER,
- true,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_DARK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_DARK,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Dark.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_VERT_DARK,
- 17,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_SILVER_VERT,
- SbSkinDataPaddingV,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_SILVER,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_SILVER,
- false,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_DARK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_DARK,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_clrGridHeaderBkTop = RGB(253,253,253);
- m_clrGridHeaderBkBottom = RGB(212,215,220);
- m_clrGridHeaderSeparator = RGB(145,153,164);
- m_clrGridHeaderSortArrow = RGB(145,153,164);
- m_clrGridHeaderBorder = RGB(145,153,164);
- m_clrRgHeaderBkTop = RGB(253,253,253);
- m_clrRgHeaderBkBottom = RGB(212,215,220);
- m_clrRgHeaderSeparator = RGB(145,153,164);
- m_clrRgHeaderSortArrow = RGB(145,153,164);
- m_clrRgHeaderText = RGB(0,0,0);
- m_clrRgHeaderBorder = RGB(76,83,92);
- #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
- m_clrRgGroupAreaBk = RGB(235,235,235);
- m_clrRgGroupAreaText = RGB(70,70,70);
- #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
- m_nPushBtnSimpleGlyphHeightH = 43;
- m_nPushBtnSimpleGlyphHeightV = 43;
- m_nPushBtnSDDLeftGlyphHeightH = 43;
- m_nPushBtnSDDLeftGlyphHeightV = 43;
- m_nPushBtnSDDRightGlyphHeightH = 43;
- m_nPushBtnSDDRightGlyphHeightV = 9;
- m_rcPushBtnSimplePaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSimplePaddingV.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDLeftPaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDLeftPaddingV.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDRightPaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDRightPaddingV.SetRect( 3, 3, 3, 3 );
- VERIFY(
- m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_SIMPLE )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_LEFT_PART )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_RIGHT_PART )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
- m_arrBmpPushBtnSimpleH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSimpleH.GetSize().cx,
- m_nPushBtnSimpleGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDLeftH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDLeftH.GetSize().cx,
- m_nPushBtnSDDLeftGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDRightH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDRightH.GetSize().cx,
- m_nPushBtnSDDRightGlyphHeightH,
- false,
- false
- )
- );
- m_arrBmpPushBtnSimpleV.PreMultipliedRGBChannelsSet( true );
- m_arrBmpPushBtnSDDLeftV.PreMultipliedRGBChannelsSet( true );
- m_arrBmpPushBtnSDDRightV.PreMultipliedRGBChannelsSet( true );
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- if( g_PaintManager.m_bIsWinVistaOrLater )
- {
- VERIFY( m_bmpRibbonTabAreaBlur.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TAB_AREA_DWM_BLUR) ) );
- m_rcRibbonTabAreaBlurPadding.SetRect( 35, 0, 35, 36 );
- }
- m_clrRibbonTabClientAreaActive = RGB(233,235,238);
- m_clrRibbonTabClientAreaInactive = RGB(252,252,252);
- m_clrContractedMargin1 = RGB(128,128,128);
- m_clrContractedMargin2 = RGB(128,128,128);
- m_bRibbonGroupCaptionAtTop = false;
- m_bRibbonGroupCaptionAreaHasPadding = true;
- m_nRibbonGroupCaptionAreaHeightExpanded = 16;
- m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
- m_nRibbonGroupIconBkVertOffset = 2;
- m_nRibbonCaptionPartHeight = 17;
- m_rcRibbonPageOuterContentPadding.SetRect( 0, 0, 0, 0 );
- m_clrRibbonComboBackGroundNormal = RGB(255,255,255);
- m_clrRibbonComboBackGroundDisabled = RGB(255,255,255);
- m_nRibbonTabIntersectionHeight = 1;
- //m_nRibbonQuickAccessBarButtonsAlignment = 0;
- m_clrRibbonGroupCaptionTextCollapsed
- = m_clrRibbonButtonNormal
- = RGB(57,60,63);
- m_clrRibbonButtonDisabled = RGB(128,128,128);
- m_clrRibbonGroupCaptionTextExpanded = RGB( 52, 52, 64 );
- //m_clrRibbonGroupCaptionTextShadowExpanded = RGB( 0, 0, 0 );
- //m_sizeRibbonGroupCaptionTextOffset = CSize( 1, 1 );
- m_nRibbonGroupCaptionTextDF
- = m_nRibbonGroupCaptionTextShadowDF
- = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
- m_rcRibbonPageBkPadding.SetRect( 1, 1, 1, 1 );
- VERIFY(
- m_bmpRibbonPageBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_PAGE_BK_R2_SILVER)
- )
- );
-
- m_rcRibbonGroupPaddingBkExpanded.SetRect( 2, 6, 4, 2 );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_SILVER)
- )
- );
- m_bmpRibbonGroupBkExpanded[0].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_SILVER)
- )
- );
- m_bmpRibbonGroupBkExpanded[1].PreMultipliedRGBChannelsSet( false );
- m_rcRibbonGroupPaddingBkCollapsed.SetRect( 2, 6, 4, 2 );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_SILVER)
- )
- );
- m_bmpRibbonGroupBkCollapsed[0].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_SILVER)
- )
- );
- m_bmpRibbonGroupBkCollapsed[1].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_SILVER)
- )
- );
- m_bmpRibbonGroupBkCollapsed[2].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource( // selected same as hover in R1
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_SILVER)
- )
- );
- m_bmpRibbonGroupBkCollapsed[3].PreMultipliedRGBChannelsSet( false );
- //INT nBkIndex, nBkCount;
- // nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
- // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // {
- // m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
- // m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
- // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // {
- // m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
- // m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- VERIFY( m_bmpRibbonGroupBkQATB[0].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_NORMAL_BK_R2_SILVER) ) );
- //m_bmpRibbonGroupBkQATB[0].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[0].Make32() );
- m_bmpRibbonGroupBkQATB[0].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- VERIFY( m_bmpRibbonGroupBkQATB[1].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_HOVER_BK_R2_SILVER) ) );
- //m_bmpRibbonGroupBkQATB[1].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[1].Make32() );
- m_bmpRibbonGroupBkQATB[1].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- VERIFY( m_bmpRibbonGroupBkQATB[2].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_PRESSED_BK_R2_SILVER) ) );
- //m_bmpRibbonGroupBkQATB[2].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[2].Make32() );
- m_bmpRibbonGroupBkQATB[2].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- m_bmpRibbonGroupBkQATB[3] = m_bmpRibbonGroupBkQATB[1];
- m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
- m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
- m_rcRibbonSeparatorPaddingH.SetRect( 0, 0, 0, 0 );
- VERIFY(
- m_bmpRibbonSeparatorH.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_H_R2_SILVER)
- )
- );
- VERIFY( m_bmpRibbonSeparatorH.Make32() );
- m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonSeparatorPaddingV.SetRect( 0, 0, 0, 0 );
- VERIFY(
- m_bmpRibbonSeparatorV.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_V_R2_SILVER)
- )
- );
- VERIFY( m_bmpRibbonSeparatorV.Make32() );
- m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonPaddingQACEB.SetRect( 3, 3, 3, 3 );
- m_nRibbonHeightOfQACEB = 22;
- m_nIdxRibbonQACEB_Normal = 3;
- m_nIdxRibbonQACEB_Hover = 0;
- m_nIdxRibbonQACEB_Pressed = 1;
- m_nIdxRibbonQACEB_Selected = 2;
- VERIFY(
- m_bmpArrRibbonQACEB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_CEB_R2_SILVER)
- )
- );
- m_bmpArrRibbonQACEB.PreMultiplyRGBChannels( false );
- //m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
- m_nRibbonEmbeddedCaptionTextAlignmentFlags = (DT_SINGLELINE|DT_CENTER|DT_VCENTER);
- //m_bRibbonFileButtonItegrationSupported = false;
- //m_nRibbonFileButtonMenuIntersectionHeight = 20;
- m_nQatbAdditionalSpaceAtRightDWM = 0;
- // INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
- // INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
- // CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
- m_rcRibbonNcCornerLeftCP.SetRect( 53, 2, 2, 2 );
- m_rcRibbonNcCornerRightCP.SetRect( 2, 2, 42, 2 );
- VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_FILE_BUTTON) ) );
- //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
- m_bmpArrRibbonFileButton.PreMultiplyRGBChannels( true );
- m_nRibbonFileButtonHeight = m_bmpArrRibbonFileButton.GetSize().cy / 3;
- m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 0, 1, 0, 1 );
- VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_BK_R2_SILVER) ) );
- m_nRibbonHeightOfOneDLB = 14;
- m_nDlbIdxDisabled = m_nDlbIdxNormal = 0;
- m_nDlbIdxHover = 1;
- m_nDlbIdxPressed = 2;
- rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
- VERIFY( m_arrBmpRibbonDLB.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_GCB_R2_SILVER) ) );
- //m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
- m_arrBmpRibbonDLB.PreMultiplyRGBChannels( false );
- m_clrRibbonGalleryInplaceBorderNormal = m_clrRibbonGalleryInplaceBorderHover = RGB(198,202,205);
- m_clrRibbonGalleryInplaceBkgndNormal = m_clrRibbonGalleryInplaceBkgndHover = RGB(255,255,255);
- m_rcRibbonGalleryScrollFill = RGB(255,255,255);
- m_rcRibbonGalleryScrollButtonPadding.SetRect( 3, 3, 3, 3 );
- m_nHeightRibbonGalleryScrollButton = -1; //20;
- m_nIndexRibbonGalleryScrollButtonNormal = 0;
- m_nIndexRibbonGalleryScrollButtonHover = 1;
- m_nIndexRibbonGalleryScrollButtonPressed = 2;
- m_nIndexRibbonGalleryScrollButtonDisabled = 3;
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_DOWN_R2_SILVER)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonDown.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_UP_R2_SILVER)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonUp.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_MENU_R2_SILVER)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonMenu.PreMultipliedRGBChannelsSet( true );
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_DDA_R1) ) );
- VERIFY( m_bmpRibbonDDA.Make32() );
- m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonPaddingComboBoxDropDown.SetRect( 2, 2, 2, 2 );
- VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_COMBO_BOX_BUTTON_R1) ) );
- m_bmpArrRibbonComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
- // buttons 2010
- m_nHeightOfButtonLSM = 66;
- m_nHeightOfButtonLSXM = 39;
- m_nHeightOfButtonLSXB = 27;
- // tool buttons 2010
- m_rcPaddingOfButtonTS.SetRect( 3, 3, 3, 3 );
- m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonSS.SetRect( 3, 3, 3, 3 );
- m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
- m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonLSM.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 4;
- // m_rcPaddingOfButtonLSB.SetRect( 4, 4, 4, 4 );
- // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
- // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
- // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 3;
- // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonLSXM.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 5;
- m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 3;
- m_rcPaddingOfButtonLSXB.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 0;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 5;
- m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 3;
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_LEFT_R1)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_RIGHT_R1)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
- if( ! m_bmpArrButtonSS_simple.IsEmpty() )
- {
- CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
- INT nY = 0, nXRange = _sizeBmp.cx / 2;
- for( ; nY < _sizeBmp.cy; nY ++ )
- {
- INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
- for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
- {
- RGBQUAD _pixel;
- VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
- VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
- } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
- } // for( ; nY < _sizeBmp.cy; nY ++ )
- } // if( m_bmpArrButtonSS_simple.IsEmpty() )
- VERIFY(
- m_bmpArrButtonLSM.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_ALL_R1)
- )
- );
- m_bmpArrButtonLSM.PreMultipliedRGBChannelsSet( true );
- // VERIFY(
- // m_bmpArrButtonLSB.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R2_SILVER)
- // )
- // );
- // m_bmpArrButtonLSB.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonLSXM.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_TOP_R1)
- )
- );
- m_bmpArrButtonLSXM.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonLSXB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R1)
- )
- );
- m_bmpArrButtonLSXB.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_HOVER_R2_SILVER)
- )
- );
- m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_PRESSED_R2_SILVER)
- )
- );
- m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_HOVER_R1)
- )
- );
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].Make32();
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY(
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_PRESSED_R1)
- )
- );
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].Make32();
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpRibbonMenuResizingMarginHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_HV_OBSIDIAN) ) );
- VERIFY( m_bmpRibbonMenuResizingMarginV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_V_OBSIDIAN) ) );
- VERIFY( m_bmpRibbonMenuResizingGripperHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_HV_OBSIDIAN) ) );
- m_bmpRibbonMenuResizingGripperHV.Make32();
- m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_OBSIDIAN) ) );
- m_bmpRibbonMenuResizingGripperV.Make32();
- m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
- VERIFY(
- m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R2_SILVER)
- )
- );
- m_bmpRibbonModeMenuBorder.Make32();
- m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrMenuCaptionText = RGB(57,60,63);
- m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
- VERIFY(
- m_bmpMenuCaptionBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R2_SILVER)
- )
- );
- m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
- VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R2_SILVER) ) );
- m_bmpRibbonFileMenuBigBorder.Make32();
- m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
-
- m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
- // VERIFY(
- // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R2_SILVER)
- // )
- // );
- // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
- // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY(
- m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
- )
- );
- m_bmpRibbonFileMenuOptionsButtonHot.Make32();
- m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R2_SILVER) ) );
- m_bmpResizingGripper.Make32();
- m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // spin bitmaps
- VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
- VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
- }
- CExtPaintManagerOffice2010_R2_Silver::~CExtPaintManagerOffice2010_R2_Silver()
- {
- }
- CExtPaintManagerOffice2010_R2_Black::CExtPaintManagerOffice2010_R2_Black()
- {
- m_bThemedMenuItemsEverywhere = true;
-
- m_clrFillHint = RGB(188,188,188);
- m_clrAccentHint = RGB(255,227,140); // RGB(156,193,234);
- m_clrIconAlphaColor = RGB(114,121,138);
- m_clrAdvTipGradientBottom = RGB(229,229,240);
- VERIFY( m_arrMdiRightIcons[0].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_MINIMIZE) ) );
- VERIFY( m_arrMdiRightIcons[1].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_RESTORE) ) );
- VERIFY( m_arrMdiRightIcons[2].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_CLOSE) ) );
- // m_clrDCA1 = RGB(115,115,115);
- // m_clrDCA2 = RGB(115,115,115);
- // m_clrDCA3 = RGB(115,115,115);
- // m_bDocumentClientAreaBkgndR2 = true;
- VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_DCA_R2_BLACK) ) );
- // m_bmpDCA.PreMultiplyRGBChannels();
- // m_bmpDCA.PreMultipliedRGBChannelsSet( true );
- // m_clrDCA_Solid = RGB(115,115,115);
- m_bUseNcFrameBmpForDockerBkgnd = true;
- m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
- m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
- m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(83,96,125);
- m_clrDockingFrameCaptionTextActive = RGB(51,51,51);
- m_clrDockingFrameCaptionTextInactive = RGB(51,51,51);
- m_clrDockingFrameCaptionTextFloatingFixed = RGB(255,255,255);
- m_clrDockingCaptionShapeFixedNormal = RGB(255,255,255);
- m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
- m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
- m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
- VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_ACTIVE_R2_BLACK) ) );
- VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_INACTIVE_R2_BLACK) ) );
- VERIFY( m_bmpNcFrameActive.Make32() );
- VERIFY( m_bmpNcFrameInactive.Make32() );
- m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
- m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
- m_clrNcFrameTextActive = RGB(220,220,220); // = RGB(123,123,123);
- m_clrNcFrameTextInactive = RGB(200,200,200); // = RGB(183,183,183);
- m_bmpNcFrameActive.PreMultiplyRGBChannels();
- m_bmpNcFrameActive.PreMultipliedRGBChannelsSet( true );
- m_bmpNcFrameInactive.PreMultiplyRGBChannels();
- m_bmpNcFrameInactive.PreMultipliedRGBChannelsSet( true );
- m_sizeNcButtonShapeInArr.cx = m_sizeNcButtonShapeInArr.cy = 21;
- m_nNcBtnIdxNormalActive = m_nNcBtnIdxNormalInactive = 0;
- m_rcNcButtonBkPadding.SetRect( 4, 4, 4, 4 );
- VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_R2_BLACK) ) );
- VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_R2_BLACK) ) );
- VERIFY( m_bmpNcButtonBkHover.Make32() );
- VERIFY( m_bmpNcButtonBkPressed.Make32() );
- m_bmpNcButtonBkHover.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkPressed.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkHover.PreMultiplyRGBChannels();
- m_bmpNcButtonBkHover.PreMultipliedRGBChannelsSet( true );
- m_bmpNcButtonBkPressed.PreMultiplyRGBChannels();
- m_bmpNcButtonBkPressed.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpNcButtonBkHoverX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_X_R2_BLACK) ) );
- VERIFY( m_bmpNcButtonBkPressedX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_X_R2_BLACK) ) );
- VERIFY( m_bmpNcButtonBkHoverX.Make32() );
- VERIFY( m_bmpNcButtonBkPressedX.Make32() );
- m_bmpNcButtonBkHoverX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkPressedX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_bmpNcButtonBkHoverX.PreMultiplyRGBChannels();
- m_bmpNcButtonBkHoverX.PreMultipliedRGBChannelsSet( true );
- m_bmpNcButtonBkPressedX.PreMultiplyRGBChannels();
- m_bmpNcButtonBkPressedX.PreMultipliedRGBChannelsSet( true );
- m_sizeNcButtonShapeInArr.cx = 13;
- m_sizeNcButtonShapeInArr.cy = 12;
- m_nNcBtnIdxNormalActive = 0;
- m_nNcBtnIdxHover = 1;
- m_nNcBtnIdxPressed = 2;
- m_nNcBtnIdxNormalInactive = 3;
- m_nNcBtnIdxDisabled = 4;
- VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_CLOSE_R2_BLACK) ) );
- // m_bmpArrNcButtonsClose.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsClose.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MAXIMIZE_R2_BLACK) ) );
- // m_bmpArrNcButtonsMaximize.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsMaximize.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_RESTORE_R2_BLACK) ) );
- // m_bmpArrNcButtonsRestore.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsRestore.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MINIMIZE_R2_BLACK) ) );
- // m_bmpArrNcButtonsMinimize.PreMultiplyRGBChannels();
- m_bmpArrNcButtonsMinimize.PreMultipliedRGBChannelsSet( true );
- VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_HELP_R1) ) );
- m_bmpArrNcButtonsHelp.PreMultiplyRGBChannels();
- #if (!defined __EXT_MFC_NO_STATUSBAR)
- m_clrStatusPaneTextColorNormal = RGB(226,226,226);
- m_clrStatusPaneTextColorDisabled = RGB(170,170,170);
- m_rcStatusBkPadding.SetRect( 0, 2, 0, 1 );
- VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_LIGHT_R2_BLACK) ) );
- VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_DARK_R2_BLACK) ) );
- m_rcStatusSeparatorPadding.SetRect( 0, 2, 0, 1 );
- VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_SEPARATOR_R2_BLACK) ) );
- #endif // (!defined __EXT_MFC_NO_STATUSBAR)
- #if (!defined __EXT_MFC_NO_TAB_CTRL)
- m_clrTabTextNormal = RGB(226,226,226);
- m_clrTabTextSelected = RGB(52,52,64);
- m_clrTabTextNormalDWM = RGB( 226, 226, 226 );
- m_clrTabTextSelectedDWM = RGB( 0, 0, 0 );
- m_nIdxTabShapeHover = 0;
- m_nIdxTabShapePressed = 1;
- m_nIdxTabShapeSelected = 1;
- m_nIdxTabShapeSelectedHover = 1;
- m_arrSizeTabShape[__ETSOI_TOP].cx
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
- = m_arrSizeTabShape[__ETSOI_LEFT].cy
- = m_arrSizeTabShape[__ETSOI_RIGHT].cy
- = 13;
- m_arrSizeTabShape[__ETSOI_TOP].cy
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
- = m_arrSizeTabShape[__ETSOI_LEFT].cx
- = m_arrSizeTabShape[__ETSOI_RIGHT].cx
- = 23;
- m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 4, 3, 4, 3 );
- m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 4, 3, 4, 3 );
- m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 4, 3, 4 );
- m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 4, 3, 4 );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_R2_BLACK )
- )
- );
- m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 180,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 270,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 90,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_SEL_AREA_R2_BLACK )
- )
- );
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 180,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 270,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 90,
- 4,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
- m_arrTabAreaMargins[__ETSOI_TOP] = 1;
- m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
- m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
- m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
- m_arrSizeTabSeparator[__ETSOI_TOP].cx
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
- = 2;
- m_arrSizeTabSeparator[__ETSOI_TOP].cy
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
- = 23;
- m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
- m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SEPARATOR_R2_BLACK )
- )
- );
- VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
- // m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
- // m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 180,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 270,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 90,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
- VERIFY(
- m_bmpArrStatesCheckBox.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_CHECK_BOX_R1 )
- )
- );
- VERIFY(
- m_bmpArrStatesRadioButton.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_RADIO_BUTTON_R1 )
- )
- );
- m_clrMenuItemLeftAreaMarginL = RGB(226, 228, 231);
- m_clrMenuItemLeftAreaMarginR = RGB(245, 245, 245);
- m_rcMenuItemPaddingLargeLeft.SetRect( 3, 3, 3, 16 );
- m_rcMenuItemPaddingLargeRight.SetRect( 1, 3, 3, 16 );
- m_rcMenuItemPaddingSmallLeft.SetRect( 3, 3, 3, 10 );
- m_rcMenuItemPaddingSmallRight.SetRect( 1, 3, 3, 10 );
- VERIFY(
- m_bmpMenuItemLargeLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_LEFT )
- )
- );
- VERIFY(
- m_bmpMenuItemLargeRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_RIGHT )
- )
- );
- VERIFY(
- m_bmpMenuItemSmallLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_LEFT )
- )
- );
- VERIFY(
- m_bmpMenuItemSmallRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_RIGHT )
- )
- );
- VERIFY(
- m_bmpMenuArrow.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_ARROW )
- )
- );
- m_sizeMenuCheckAreaChecked.cx = 16;
- m_sizeMenuCheckAreaChecked.cy = 16;
- m_sizeMenuCheckAreaUnchecked.cx = 20;
- m_sizeMenuCheckAreaUnchecked.cy = 20;
- m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 1, 1, 1, 1 );
- VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_CHECKED_R1 ) ) );
- VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_UNCHECKED_R1 ) ) );
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_arrClrPnCaptNormal[0] = RGB(235,238,250);
- m_arrClrPnCaptNormal[1] = RGB(215,219,229);
- m_arrClrPnCaptNormal[2] = RGB(197,199,209);
- m_arrClrPnCaptNormal[3] = RGB(212,216,226);
- m_arrClrPnSplitter[0] = RGB( 102, 102, 102 );
- m_arrClrPnSplitter[1] = RGB( 79, 79, 79 );
- m_clrPnCaptText = RGB( 30, 57, 91 );
- m_arrClrPnItemText[0] = RGB(0,0,0);
- m_arrClrPnItemText[1] = RGB(76,83,92);
- m_clrPnConfigButton = RGB(101,104,112);
- static const UINT g_arrResIdPnItemExpanded[ePn_Count] =
- {
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_NORMAL_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_HOVER_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_PRESSED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_HOVER_R1,
- };
- static const UINT g_arrResIdPnItemCollapsed[ePn_Count] =
- {
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_NORMAL_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_HOVER_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_PRESSED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_R1,
- IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_HOVER_R1,
- };
- INT nPnIndex;
- for( nPnIndex = 0; nPnIndex < INT(ePn_Count); nPnIndex ++ )
- {
- VERIFY( m_arrBmpPnItemExpanded[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemExpanded[nPnIndex]) ) );
- VERIFY( m_arrBmpPnItemCollapsed[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemCollapsed[nPnIndex]) ) );
- m_arrRcPnItemPaddingExpanded[nPnIndex].SetRect( 0, 2, 0, 2 );
- m_arrRcPnItemPaddingCollapsed[nPnIndex].SetRect( 0, 0, 0, 0 );
- m_arrClrPnItemTextBmpVer[nPnIndex] = RGB(0,0,0);
- }
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_COMBO_BOX_BUTTON_R2_BLACK ) ) );
- m_bmpArrComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
- m_arrClrComboBoxBorder[0] = RGB(212,214,217);
- m_arrClrComboBoxBorder[1] = RGB(164,164,164);
- m_arrClrComboBoxBorder[2] = RGB(164,164,164);
- m_arrClrComboBoxBorder[3] = RGB(228,231,235);
- CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
- CRect rcEntirePaddingRH( 2, 2, 2, 2 ), rcEntirePaddingRV( 2, 2, 2, 2 );
- CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
- m_SbSkinDataT_Zoom.Load2010_Zoom_R2(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
- RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_TOP
- );
- m_SbSkinDataB_Zoom.Load2010_Zoom_R2(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
- RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_BOTTOM
- );
- m_SbSkinDataL_Zoom.Load2010_Zoom_R2(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
- RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_LEFT
- );
- m_SbSkinDataR_Zoom.Load2010_Zoom_R2(
- IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
- RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_RIGHT
- );
- m_SbSkinDataH_Light.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_HORZ_LIGHT,
- 16,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_HORZ,
- SbSkinDataPaddingH,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
- true,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_LIGHT,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Light.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_VERT_LIGHT,
- 17,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_VERT,
- SbSkinDataPaddingV,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R1,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R1,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R1,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R1,
- false,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_LIGHT,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_LIGHT,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_SbSkinDataH_Dark.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_HORZ_DARK,
- 16,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLACK_HORZ,
- SbSkinDataPaddingH,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLACK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLACK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLACK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLACK,
- true,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_DARK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_DARK,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Dark.Load2007_R1(
- IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_VERT_DARK,
- 17,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLACK_VERT,
- SbSkinDataPaddingV,
- COLORREF(-1L),
- COLORREF(-1L),
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLACK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLACK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLACK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLACK,
- false,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_DARK,
- IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_DARK,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_clrGridHeaderBkTop = RGB(253,253,253);
- m_clrGridHeaderBkBottom = RGB(212,215,220);
- m_clrGridHeaderSeparator = RGB(145,153,164);
- m_clrGridHeaderSortArrow = RGB(145,153,164);
- m_clrGridHeaderBorder = RGB(145,153,164);
- m_clrRgHeaderBkTop = RGB(253,253,253);
- m_clrRgHeaderBkBottom = RGB(212,215,220);
- m_clrRgHeaderSeparator = RGB(145,153,164);
- m_clrRgHeaderSortArrow = RGB(145,153,164);
- m_clrRgHeaderText = RGB(0,0,0);
- m_clrRgHeaderBorder = RGB(76,83,92);
- #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
- m_clrRgGroupAreaBk = RGB(235,235,235);
- m_clrRgGroupAreaText = RGB(70,70,70);
- #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
- m_nPushBtnSimpleGlyphHeightH = 43;
- m_nPushBtnSimpleGlyphHeightV = 43;
- m_nPushBtnSDDLeftGlyphHeightH = 43;
- m_nPushBtnSDDLeftGlyphHeightV = 43;
- m_nPushBtnSDDRightGlyphHeightH = 43;
- m_nPushBtnSDDRightGlyphHeightV = 9;
- m_rcPushBtnSimplePaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSimplePaddingV.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDLeftPaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDLeftPaddingV.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDRightPaddingH.SetRect( 3, 3, 3, 3 );
- m_rcPushBtnSDDRightPaddingV.SetRect( 3, 3, 3, 3 );
- VERIFY(
- m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_SIMPLE )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_LEFT_PART )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_RIGHT_PART )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
- m_arrBmpPushBtnSimpleH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSimpleH.GetSize().cx,
- m_nPushBtnSimpleGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDLeftH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDLeftH.GetSize().cx,
- m_nPushBtnSDDLeftGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDRightH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDRightH.GetSize().cx,
- m_nPushBtnSDDRightGlyphHeightH,
- false,
- false
- )
- );
- m_arrBmpPushBtnSimpleV.PreMultipliedRGBChannelsSet( true );
- m_arrBmpPushBtnSDDLeftV.PreMultipliedRGBChannelsSet( true );
- m_arrBmpPushBtnSDDRightV.PreMultipliedRGBChannelsSet( true );
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- if( g_PaintManager.m_bIsWinVistaOrLater )
- {
- VERIFY( m_bmpRibbonTabAreaBlur.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TAB_AREA_DWM_BLUR_R2_BLACK) ) );
- m_rcRibbonTabAreaBlurPadding.SetRect( 35, 0, 35, 36 );
- }
- m_clrRibbonTabClientAreaActive = RGB(117,117,117);
- m_clrRibbonTabClientAreaInactive = RGB(158,158,158);
- m_clrContractedMargin1 = RGB(128,128,128);
- m_clrContractedMargin2 = RGB(128,128,128);
- m_bRibbonGroupCaptionAtTop = false;
- m_bRibbonGroupCaptionAreaHasPadding = true;
- m_nRibbonGroupCaptionAreaHeightExpanded = 16;
- m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
- m_nRibbonGroupIconBkVertOffset = 2;
- m_nRibbonCaptionPartHeight = 17;
- m_rcRibbonPageOuterContentPadding.SetRect( 0, 0, 0, 0 );
- m_clrRibbonComboBackGroundNormal = RGB(255,255,255);
- m_clrRibbonComboBackGroundDisabled = RGB(255,255,255);
- m_nRibbonTabIntersectionHeight = 1;
- //m_nRibbonQuickAccessBarButtonsAlignment = 0;
- m_clrRibbonGroupCaptionTextCollapsed
- = m_clrRibbonButtonNormal
- = RGB(57,60,63);
- m_clrRibbonButtonDisabled = RGB(128,128,128);
- m_clrRibbonGroupCaptionTextExpanded = RGB( 52, 52, 64 );
- //m_clrRibbonGroupCaptionTextShadowExpanded = RGB( 0, 0, 0 );
- //m_sizeRibbonGroupCaptionTextOffset = CSize( 1, 1 );
- m_nRibbonGroupCaptionTextDF
- = m_nRibbonGroupCaptionTextShadowDF
- = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
- m_rcRibbonPageBkPadding.SetRect( 1, 1, 1, 1 );
- VERIFY(
- m_bmpRibbonPageBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_PAGE_BK_R2_BLACK)
- )
- );
-
- m_rcRibbonGroupPaddingBkExpanded.SetRect( 2, 6, 4, 2 );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_BLACK)
- )
- );
- m_bmpRibbonGroupBkExpanded[0].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_BLACK)
- )
- );
- m_bmpRibbonGroupBkExpanded[1].PreMultipliedRGBChannelsSet( false );
- m_rcRibbonGroupPaddingBkCollapsed.SetRect( 2, 6, 4, 2 );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_BLACK)
- )
- );
- m_bmpRibbonGroupBkCollapsed[0].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLACK)
- )
- );
- m_bmpRibbonGroupBkCollapsed[1].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_BLACK)
- )
- );
- m_bmpRibbonGroupBkCollapsed[2].PreMultipliedRGBChannelsSet( false );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource( // selected same as hover in R1
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLACK)
- )
- );
- m_bmpRibbonGroupBkCollapsed[3].PreMultipliedRGBChannelsSet( false );
- //INT nBkIndex, nBkCount;
- // nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
- // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // {
- // m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
- // m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
- // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // {
- // m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
- // m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- VERIFY( m_bmpRibbonGroupBkQATB[0].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_NORMAL_BK_R2_BLACK) ) );
- //m_bmpRibbonGroupBkQATB[0].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[0].Make32() );
- m_bmpRibbonGroupBkQATB[0].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- VERIFY( m_bmpRibbonGroupBkQATB[1].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_HOVER_BK_R2_BLACK) ) );
- //m_bmpRibbonGroupBkQATB[1].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[1].Make32() );
- m_bmpRibbonGroupBkQATB[1].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- VERIFY( m_bmpRibbonGroupBkQATB[2].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_PRESSED_BK_R2_BLACK) ) );
- //m_bmpRibbonGroupBkQATB[2].PreMultiplyRGBChannels( false );
- VERIFY( m_bmpRibbonGroupBkQATB[2].Make32() );
- m_bmpRibbonGroupBkQATB[2].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- m_bmpRibbonGroupBkQATB[3] = m_bmpRibbonGroupBkQATB[1];
- m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
- m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
- m_rcRibbonSeparatorPaddingH.SetRect( 0, 0, 0, 0 );
- VERIFY(
- m_bmpRibbonSeparatorH.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_H_R2_BLACK)
- )
- );
- VERIFY( m_bmpRibbonSeparatorH.Make32() );
- m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonSeparatorPaddingV.SetRect( 0, 0, 0, 0 );
- VERIFY(
- m_bmpRibbonSeparatorV.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_V_R2_BLACK)
- )
- );
- VERIFY( m_bmpRibbonSeparatorV.Make32() );
- m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonPaddingQACEB.SetRect( 3, 3, 3, 3 );
- m_nRibbonHeightOfQACEB = 22;
- m_nIdxRibbonQACEB_Normal = 3;
- m_nIdxRibbonQACEB_Hover = 0;
- m_nIdxRibbonQACEB_Pressed = 1;
- m_nIdxRibbonQACEB_Selected = 2;
- VERIFY(
- m_bmpArrRibbonQACEB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_CEB_R2_BLACK)
- )
- );
- m_bmpArrRibbonQACEB.PreMultiplyRGBChannels( false );
- //m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
- m_nRibbonEmbeddedCaptionTextAlignmentFlags = (DT_SINGLELINE|DT_CENTER|DT_VCENTER);
- //m_bRibbonFileButtonItegrationSupported = false;
- //m_nRibbonFileButtonMenuIntersectionHeight = 20;
- m_clrRibbon_EmbeddedCaptionTextLeft = RGB(210,210,210);
- m_clrRibbon_EmbeddedCaptionTextRight = RGB(230,244,244);
- m_nQatbAdditionalSpaceAtRightDWM = 0;
- // INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
- // INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
- // CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
- m_rcRibbonNcCornerLeftCP.SetRect( 53, 2, 2, 2 );
- m_rcRibbonNcCornerRightCP.SetRect( 2, 2, 42, 2 );
- VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_FILE_BUTTON) ) );
- //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
- m_bmpArrRibbonFileButton.PreMultiplyRGBChannels( true );
- m_nRibbonFileButtonHeight = m_bmpArrRibbonFileButton.GetSize().cy / 3;
- m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 2, 2, 2, 2 );
- VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_BK_R2_BLACK) ) );
- m_nRibbonHeightOfOneDLB = 14;
- m_nDlbIdxDisabled = m_nDlbIdxNormal = 0;
- m_nDlbIdxHover = 1;
- m_nDlbIdxPressed = 2;
- rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
- VERIFY(
- m_arrBmpRibbonDLB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_GCB_R2_BLACK)
- )
- );
- //m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
- m_arrBmpRibbonDLB.PreMultiplyRGBChannels( false );
- m_clrRibbonGalleryInplaceBorderNormal = m_clrRibbonGalleryInplaceBorderHover = RGB(198,202,205);
- m_clrRibbonGalleryInplaceBkgndNormal = m_clrRibbonGalleryInplaceBkgndHover = RGB(255,255,255);
- m_rcRibbonGalleryScrollFill = RGB(255,255,255);
- m_rcRibbonGalleryScrollButtonPadding.SetRect( 3, 3, 3, 3 );
- m_nHeightRibbonGalleryScrollButton = -1; //20;
- m_nIndexRibbonGalleryScrollButtonNormal = 0;
- m_nIndexRibbonGalleryScrollButtonHover = 1;
- m_nIndexRibbonGalleryScrollButtonPressed = 2;
- m_nIndexRibbonGalleryScrollButtonDisabled = 3;
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_DOWN_R2_BLACK)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonDown.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_UP_R2_BLACK)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonUp.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_MENU_R2_BLACK)
- )
- );
- m_bmpArrRibbonGalleryScrollButtonMenu.PreMultipliedRGBChannelsSet( true );
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_DDA_R1) ) );
- VERIFY( m_bmpRibbonDDA.Make32() );
- m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonPaddingComboBoxDropDown.SetRect( 2, 2, 2, 2 );
- VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_COMBO_BOX_BUTTON_R1) ) );
- m_bmpArrRibbonComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
- // buttons 2010
- m_nHeightOfButtonLSM = 66;
- m_nHeightOfButtonLSXM = 39;
- m_nHeightOfButtonLSXB = 27;
- // tool buttons 2010
- m_rcPaddingOfButtonTS.SetRect( 3, 3, 3, 3 );
- m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonSS.SetRect( 3, 3, 3, 3 );
- m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
- m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonLSM.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 3;
- m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 4;
- // m_rcPaddingOfButtonLSB.SetRect( 4, 4, 4, 4 );
- // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
- // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
- // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 3;
- // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 4;
- m_rcPaddingOfButtonLSXM.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 5;
- m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 3;
- m_rcPaddingOfButtonLSXB.SetRect( 4, 4, 4, 4 );
- m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 0;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 5;
- m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 3;
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_LEFT_R1)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_RIGHT_R1)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
- if( ! m_bmpArrButtonSS_simple.IsEmpty() )
- {
- CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
- INT nY = 0, nXRange = _sizeBmp.cx / 2;
- for( ; nY < _sizeBmp.cy; nY ++ )
- {
- INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
- for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
- {
- RGBQUAD _pixel;
- VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
- VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
- } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
- } // for( ; nY < _sizeBmp.cy; nY ++ )
- } // if( m_bmpArrButtonSS_simple.IsEmpty() )
- VERIFY(
- m_bmpArrButtonLSM.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_ALL_R1)
- )
- );
- m_bmpArrButtonLSM.PreMultipliedRGBChannelsSet( true );
- // VERIFY(
- // m_bmpArrButtonLSB.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R2_BLACK)
- // )
- // );
- // m_bmpArrButtonLSB.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonLSXM.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_TOP_R1)
- )
- );
- m_bmpArrButtonLSXM.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonLSXB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R1)
- )
- );
- m_bmpArrButtonLSXB.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_HOVER_R2_BLACK)
- )
- );
- m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_PRESSED_R2_BLACK)
- )
- );
- m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_HOVER_R1)
- )
- );
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].Make32();
- m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY(
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_PRESSED_R1)
- )
- );
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].Make32();
- m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpRibbonMenuResizingMarginHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_HV_OBSIDIAN) ) );
- VERIFY( m_bmpRibbonMenuResizingMarginV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_V_OBSIDIAN) ) );
- VERIFY( m_bmpRibbonMenuResizingGripperHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_HV_OBSIDIAN) ) );
- m_bmpRibbonMenuResizingGripperHV.Make32();
- m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_OBSIDIAN) ) );
- m_bmpRibbonMenuResizingGripperV.Make32();
- m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
- VERIFY(
- m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R2_BLACK)
- )
- );
- m_bmpRibbonModeMenuBorder.Make32();
- m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_clrMenuCaptionText = RGB(57,60,63);
- m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
- VERIFY(
- m_bmpMenuCaptionBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R2_BLACK)
- )
- );
- m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
- VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R2_BLACK) ) );
- m_bmpRibbonFileMenuBigBorder.Make32();
- m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
-
- m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
- // VERIFY(
- // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R2_BLACK)
- // )
- // );
- // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
- // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY(
- m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
- )
- );
- m_bmpRibbonFileMenuOptionsButtonHot.Make32();
- m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R2_BLACK) ) );
- m_bmpResizingGripper.Make32();
- m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- // spin bitmaps
- VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
- VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
- VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
- }
- CExtPaintManagerOffice2010_R2_Black::~CExtPaintManagerOffice2010_R2_Black()
- {
- }
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- INT CExtPaintManagerOffice2010_Impl::Ribbon_GetOuterGroupDistance(
- const CExtBarButton * pTBB,
- bool bDistanceBefore,
- LPARAM lParam // = 0L
- )
- {
- ASSERT_VALID( this );
- ASSERT_VALID( pTBB );
- if( IsHighContrast() )
- return
- CExtPaintManagerXP::Ribbon_GetOuterGroupDistance(
- pTBB,
- bDistanceBefore,
- lParam
- );
- return 0;
- }
- bool CExtPaintManagerOffice2010_Impl::Ribbon_HaveSeparatorsBetweenToolGroups() const
- {
- ASSERT_VALID( this );
- return true;
- }
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- void CExtPaintManagerOffice2010_R1::InitTranslatedColors()
- {
- CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
- m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
- m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
- m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) ); // 30, 57, 91
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
- m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
- m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(209, 213, 219) );
- m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(181, 184, 191) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(235, 237, 240) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(232, 234, 236) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(222, 224, 226) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(181, 184, 191) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(144, 144, 144) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(170, 170, 170) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
- m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
- m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
- m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER];
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
- m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
- m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(243, 243, 247) );
- m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(215, 215, 229) );
- int nTextColorIndex = InstallColor( RGB(57,60,63) );
- m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
- }
- void CExtPaintManagerOffice2010_R2_Blue::InitTranslatedColors()
- {
- CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
- m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
- m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
- m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) );
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
- m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
- m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(216, 228, 242) );
- m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(139, 160, 188) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(237, 245, 253) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(216, 229, 244) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(216, 228, 242) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(139, 160, 188) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(139, 160, 188) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(139, 160, 188) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
- m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
- m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
- m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER];
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
- m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
- m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(237, 245, 253) );
- m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(216, 228, 242) );
- int nTextColorIndex = InstallColor( RGB(57,60,63) );
- m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
- }
- void CExtPaintManagerOffice2010_R2_Silver::InitTranslatedColors()
- {
- CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
- m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
- m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
- m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) );
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
- m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
- m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(238, 240, 243) );
- m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(139, 144, 151) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(251, 250, 250) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(238, 240, 243) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(139, 144, 151) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(139, 144, 151) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(139, 144, 151) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
- m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
- m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
- m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER];
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
- m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
- m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(234, 237, 241) );
- int nTextColorIndex = InstallColor( RGB(57,60,63) );
- m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
- }
- void CExtPaintManagerOffice2010_R2_Black::InitTranslatedColors()
- {
- CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
- m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
- m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
- m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
- m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
- m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) );
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
- m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
- m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(145, 145, 145) );
- m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(78, 78, 78) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(188, 188, 188) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(188, 188, 188) /*RGB(147, 147, 147)*/ );
- m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(145, 145, 145) );
- m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(78, 78, 78) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
- m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(78, 78, 78) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(188, 188, 188) );
- m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(78, 78, 78) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
- m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
- m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
- m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
- m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
- m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
- m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
- m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER];
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
- m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
- m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
- m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
- m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(189, 189, 189) );
- m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(145, 145, 145) );
- int nTextColorIndex = InstallColor( RGB(57,60,63) );
- m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
- m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
- m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
- }
- void CExtPaintManagerOffice2010_Impl::PaintPushButtonMdiRight(
- CDC & dc,
- CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
- )
- {
- ASSERT_VALID( this );
- ASSERT( dc.GetSafeHdc() != NULL );
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- if( _ppbd.m_pHelperSrc != NULL )
- {
- CExtBarMdiRightButton * pTBB = DYNAMIC_DOWNCAST( CExtBarMdiRightButton, _ppbd.m_pHelperSrc );
- if( pTBB != NULL )
- {
- CExtToolControlBar * pBar = pTBB->GetSafeBar();
- if( pBar != NULL )
- {
- CExtRibbonBar * pRibbonBar = DYNAMIC_DOWNCAST( CExtRibbonBar, pBar );
- if( pRibbonBar != NULL
- && pRibbonBar->m_pExtNcFrameImpl != NULL
- // && pRibbonBar->m_pExtNcFrameImpl->NcFrameImpl_IsDwmCaptionReplacement()
- )
- {
- _ppbd.m_pIcon = NULL;
- CExtCmdIcon * pIcon = NULL;
- switch( _ppbd.m_nHelperSysCmdID )
- {
- case SC_MINIMIZE:
- pIcon = &m_arrMdiRightIcons[0];
- break;
- case SC_MAXIMIZE:
- case SC_RESTORE:
- pIcon = &m_arrMdiRightIcons[1];
- break;
- case SC_CLOSE:
- pIcon = &m_arrMdiRightIcons[2];
- break;
- }
- if( pIcon != NULL )
- {
- static const CRect g_rcInf( 3, 3, 1, 1 );
- _ppbd.m_rcClient.InflateRect( &g_rcInf );
- Ribbon_PaintPushButton( dc, _ppbd );
- _ppbd.m_rcClient.DeflateRect( &g_rcInf );
- CRect rectCaption = _ppbd.m_rcClient;
- rectCaption.DeflateRect( _ppbd.m_rcBorderSizes );
- CRect rectClient( rectCaption );
- CRect rcFocus( rectCaption );
- if( rectClient.bottom > rectClient.top
- && rectClient.right > rectClient.left
- )
- {
- _ppbd.m_pIcon = pIcon;
- PaintPushButtonIcon( dc, rectCaption, rectCaption, rcFocus, _ppbd );
- _ppbd.m_pIcon = NULL;
- }
- return;
- }
- }
- }
- }
- }
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- CExtPaintManagerOffice2007_Impl::PaintPushButtonMdiRight( dc, _ppbd );
- }
- CExtPaintManagerOffice2007_R2_LunaBlue::CExtPaintManagerOffice2007_R2_LunaBlue()
- {
- m_clrFillHint = RGB(191,219,255);
- m_clrAccentHint = RGB(255,200,91);
- m_clrIconAlphaColor = RGB(191,219,255);
- m_clrDCA1 = RGB(136,170,214);
- m_clrDCA2 = RGB(86,125,176);
- m_clrDCA3 = RGB(101,145,205);
- m_bDocumentClientAreaBkgndR2 = true;
- VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_DCA_LUNA_BLUE) ) );
- m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
- m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
- m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(49,101,165);
- m_clrDockingFrameCaptionTextActive = RGB(21,74,147);
- m_clrDockingFrameCaptionTextInactive = RGB(21,74,147);
- m_clrDockingFrameCaptionTextFloatingFixed = RGB(255,255,255);
- m_clrDockingCaptionShapeFixedNormal = RGB(255,255,255);
- m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
- m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
- m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
- VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_FRAME_ACTIVE_LUNA_BLUE) ) );
- VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_FRAME_INACTIVE_LUNA_BLUE) ) );
- VERIFY( m_bmpNcFrameActive.Make32() );
- VERIFY( m_bmpNcFrameInactive.Make32() );
- m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
- m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
- m_clrNcFrameTextActive = RGB(62,106,170); // = RGB(105,112,121); // RGB(62,106,170);
- m_clrNcFrameTextInactive = RGB(105,112,121); // RGB(62,106,170);
- VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_BUTTON_BK_HOVER_LUNA_BLUE) ) );
- VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_BUTTON_BK_PRESSED_LUNA_BLUE) ) );
-
- VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_HELP_LUNA_BLUE) ) );
- VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_CLOSE_LUNA_BLUE) ) );
- VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_MAXIMIZE_LUNA_BLUE) ) );
- VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_RESTORE_LUNA_BLUE) ) );
- VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_MINIMIZE_LUNA_BLUE) ) );
- #if (!defined __EXT_MFC_NO_STATUSBAR)
- m_rcStatusBkPadding.SetRect( 0, 1, 0, 1 );
- VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_STATUSBAR_BK_LIGHT_LUNA_BLUE) ) );
- VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_STATUSBAR_BK_DARK_LUNA_BLUE) ) );
- m_rcStatusSeparatorPadding.SetRect( 0, 1, 0, 1 );
- VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_STATUSBAR_SEPARATOR_LUNA_BLUE) ) );
- // VERIFY( m_bmpStatusSeparator.Make32() );
- // m_bmpStatusSeparator.AdjustAlpha( -0.75 );
- #endif // (!defined __EXT_MFC_NO_STATUSBAR)
- #if (!defined __EXT_MFC_NO_TAB_CTRL)
- m_clrTabTextNormal = m_clrTabTextSelected = RGB(22,22,100);
- m_nIdxTabShapeHover = 1;
- m_nIdxTabShapePressed = 2;
- m_nIdxTabShapeSelected = 3;
- m_nIdxTabShapeSelectedHover = 4;
- m_arrSizeTabShape[__ETSOI_TOP].cx
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
- = m_arrSizeTabShape[__ETSOI_LEFT].cy
- = m_arrSizeTabShape[__ETSOI_RIGHT].cy
- = 57;
- m_arrSizeTabShape[__ETSOI_TOP].cy
- = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
- = m_arrSizeTabShape[__ETSOI_LEFT].cx
- = m_arrSizeTabShape[__ETSOI_RIGHT].cx
- = 24;
- m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 6, 3, 6, 3 );
- m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 6, 3, 6, 3 );
- m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 6, 3, 6 );
- m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 6, 3, 6 );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_TAB_SHAPE_ARR_LUNA_BLUE )
- )
- );
- VERIFY( m_arrBmpTabShapeNormal[__ETSOI_TOP].Make32() );
- m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 180,
- 5,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 270,
- 5,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeNormal[__ETSOI_TOP],
- 90,
- 5,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_TAB_SHAPE_ARR_LUNA_BLUE_SEL_AREA )
- )
- );
- VERIFY( m_arrBmpTabShapeSelArea[__ETSOI_TOP].Make32() );
- m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 180,
- 5,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 270,
- 5,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabShapeSelArea[__ETSOI_TOP],
- 90,
- 5,
- m_arrSizeTabShape[__ETSOI_TOP].cx,
- m_arrSizeTabShape[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
- m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
- m_arrTabAreaMargins[__ETSOI_TOP] = 1;
- m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
- m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
- m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
- VERIFY(
- m_arrBmpTabArea[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_TAB_AREA_BK_LUNA_BLUE )
- )
- );
- VERIFY( m_arrBmpTabArea[__ETSOI_TOP].Make32() );
- CSize _sizeTabArea = m_arrBmpTabArea[__ETSOI_TOP].GetSize();
- m_arrBmpTabArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabArea[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabArea[__ETSOI_TOP],
- 180,
- 1,
- _sizeTabArea.cx,
- _sizeTabArea.cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabArea[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabArea[__ETSOI_TOP],
- 270,
- 1,
- _sizeTabArea.cx,
- _sizeTabArea.cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabArea[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabArea[__ETSOI_TOP],
- 90,
- 1,
- _sizeTabArea.cx,
- _sizeTabArea.cy,
- false,
- false
- )
- );
- m_arrSizeTabSeparator[__ETSOI_TOP].cx
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
- = 1;
- m_arrSizeTabSeparator[__ETSOI_TOP].cy
- = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
- = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
- = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
- = 24;
- m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
- m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
- m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_TAB_SEPARATOR_LUNA_BLUE )
- )
- );
- VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
- m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
- m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 180,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 270,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
- m_arrBmpTabSeparator[__ETSOI_TOP],
- 90,
- 1,
- m_arrSizeTabSeparator[__ETSOI_TOP].cx,
- m_arrSizeTabSeparator[__ETSOI_TOP].cy,
- false,
- false
- )
- );
- #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
- VERIFY(
- m_bmpArrStatesCheckBox.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_CHECK_BOX_R2_LUNA_BLUE )
- )
- );
- VERIFY(
- m_bmpArrStatesRadioButton.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_RADIO_BUTTON_R2 )
- )
- );
- m_clrMenuItemLeftAreaMarginL = RGB(197,197,197);
- m_clrMenuItemLeftAreaMarginR = RGB(245,245,245);
- VERIFY(
- m_bmpMenuItemLargeLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_LARGE_LEFT )
- )
- );
- m_bmpMenuItemLargeLeft.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpMenuItemLargeRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_LARGE_RIGHT )
- )
- );
- m_bmpMenuItemLargeRight.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpMenuItemSmallLeft.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_SMALL_LEFT )
- )
- );
- m_bmpMenuItemSmallLeft.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpMenuItemSmallRight.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_SMALL_RIGHT )
- )
- );
- m_bmpMenuItemSmallRight.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpMenuArrow.LoadBMP_Resource(
- MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_ARROW )
- )
- );
- m_sizeMenuCheckAreaChecked.cx = 16;
- m_sizeMenuCheckAreaChecked.cy = 16;
- m_sizeMenuCheckAreaUnchecked.cx = 20;
- m_sizeMenuCheckAreaUnchecked.cy = 20;
- m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
- m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 2, 2, 2, 2 );
- m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 2, 2, 2, 2 );
- VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2007_MENU_CHECK_AREA_CHECKED_R2 ) ) );
- VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2007_MENU_CHECK_AREA_UNCHECKED_R2 ) ) );
- #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- m_arrClrPnCaptNormal[0] = RGB(227,239,255);
- m_arrClrPnCaptNormal[1] = RGB(197,222,255);
- m_arrClrPnCaptNormal[2] = RGB(173,209,255);
- m_arrClrPnCaptNormal[3] = RGB(193,220,255);
- m_arrClrPnSplitter[0] = RGB(255,255,255);
- m_arrClrPnSplitter[1] = RGB(182,214,255);
- m_clrPnSplitterDots = RGB(101,147,207);
- m_clrPnCaptText = RGB(21,66,139);
- m_arrClrPnItemText[0] = RGB(0,0,0);
- m_arrClrPnItemText[1] = RGB(32,77,137);
- m_clrPnConfigButton = RGB(67,113,176);
- #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
- VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2007_COMBO_BOX_BUTTON_R2_LUNA_BLUE ) ) );
- m_arrClrComboBoxBorder[0] = RGB(171,193,222);
- m_arrClrComboBoxBorder[1] = RGB(179,199,225);
- m_arrClrComboBoxBorder[2] = RGB(179,199,225);
- m_arrClrComboBoxBorder[3] = RGB(171,193,222);
- CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
- CRect rcEntirePaddingRH( 0, 2, 0, 2 ), rcEntirePaddingRV( 2, 0, 2, 0 );
- CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
- m_SbSkinDataT_Zoom.Load2007_Zoom(
- IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
- RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_TOP
- );
- m_SbSkinDataB_Zoom.Load2007_Zoom(
- IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
- RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_BOTTOM
- );
- m_SbSkinDataL_Zoom.Load2007_Zoom(
- IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
- RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_LEFT
- );
- m_SbSkinDataR_Zoom.Load2007_Zoom(
- IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
- RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_RIGHT
- );
- m_SbSkinDataH_Light.Load2007_R2(
- IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_HORZ_LUNA_BLUE,
- 15,
- IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_HORZ,
- 8,
- SbSkinDataPaddingH,
- COLORREF(-1L), // RGB(117,150,192),
- COLORREF(-1L), // RGB(91,99,116),
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
- true,
- IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_LIGHT,
- IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_LIGHT,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Light.Load2007_R2(
- IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_VERT_LUNA_BLUE,
- 21,
- IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_VERT,
- 8,
- SbSkinDataPaddingV,
- COLORREF(-1L), // RGB(117,150,192),
- COLORREF(-1L), // RGB(91,99,116),
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
- false,
- IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_LIGHT,
- IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_LIGHT,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_SbSkinDataH_Dark.Load2007_R2(
- IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_HORZ_LUNA_BLUE,
- 15,
- IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_HORZ,
- 8,
- SbSkinDataPaddingH,
- COLORREF(-1L), // RGB(117,150,192),
- COLORREF(-1L), // RGB(91,99,116),
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
- true,
- IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_DARK,
- IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_DARK,
- rcEntirePaddingRH,
- rcEntirePaddingCH
- );
- m_SbSkinDataV_Dark.Load2007_R2(
- IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_VERT_LUNA_BLUE,
- 21,
- IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_VERT,
- 8,
- SbSkinDataPaddingV,
- COLORREF(-1L), // RGB(117,150,192),
- COLORREF(-1L), // RGB(91,99,116),
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
- IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
- false,
- IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_DARK,
- IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_DARK,
- rcEntirePaddingRV,
- rcEntirePaddingCV
- );
- m_clrGridHeaderBkTop = RGB(252,253,255);
- m_clrGridHeaderBkBottom = RGB(197,222,255);
- m_clrGridHeaderSeparator = RGB(154,198,255);
- m_clrGridHeaderSortArrow = RGB(154,198,255);
- m_clrGridHeaderBorder = RGB(154,198,255);
- m_clrRgHeaderBkTop = RGB(252,253,255);
- m_clrRgHeaderBkBottom = RGB(197,222,255);
- m_clrRgHeaderSeparator = RGB(154,198,255);
- m_clrRgHeaderSortArrow = RGB(154,198,255);
- m_clrRgHeaderText = RGB(0,0,0);
- m_clrRgHeaderBorder = RGB(101,147,207);
- #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
- m_clrRgGroupAreaBk = RGB(213,228,242);
- m_clrRgGroupAreaText = RGB(21,74,147);
- #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
- // m_nTbbLightWeightSimpleGlyphHeightV = 20;
- // m_nTbbLightWeightSDDLeftGlyphHeightV = 23;
- // m_nTbbLightWeightSDDRightGlyphHeightV = 10;
- // VERIFY(
- // m_arrBmpTbbLightWeightSimpleH.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_TBB_LIGHTWEIGHT_R2_SIMPLE )
- // )
- // );
- // VERIFY(
- // m_arrBmpTbbLightWeightSDDLeftH.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_TBB_LIGHTWEIGHT_R2_LEFT_PART )
- // )
- // );
- // VERIFY(
- // m_arrBmpTbbLightWeightSDDRightH.LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_TBB_LIGHTWEIGHT_R2_RIGHT_PART )
- // )
- // );
- // // m_arrBmpTbbLightWeightSimpleH.PreMultipliedRGBChannelsSet( true );
- // // m_arrBmpTbbLightWeightSDDLeftH.PreMultipliedRGBChannelsSet( true );
- // // m_arrBmpTbbLightWeightSDDRightH.PreMultipliedRGBChannelsSet( true );
- // VERIFY(
- // m_arrBmpTbbLightWeightSimpleV.CreateRotated9xStack(
- // m_arrBmpTbbLightWeightSimpleH,
- // 90,
- // INT(__EPBGT_GLYPH_COUNT),
- // m_arrBmpTbbLightWeightSimpleH.GetSize().cx,
- // m_nTbbLightWeightSimpleGlyphHeightH,
- // false,
- // false
- // )
- // );
- // VERIFY(
- // m_arrBmpTbbLightWeightSDDLeftV.CreateRotated9xStack(
- // m_arrBmpTbbLightWeightSDDLeftH,
- // 90,
- // INT(__EPBGT_GLYPH_COUNT),
- // m_arrBmpTbbLightWeightSDDLeftH.GetSize().cx,
- // m_nTbbLightWeightSDDLeftGlyphHeightH,
- // false,
- // false
- // )
- // );
- // VERIFY(
- // m_arrBmpTbbLightWeightSDDRightV.CreateRotated9xStack(
- // m_arrBmpTbbLightWeightSDDRightH,
- // 90,
- // INT(__EPBGT_GLYPH_COUNT),
- // m_arrBmpTbbLightWeightSDDRightH.GetSize().cx,
- // m_nTbbLightWeightSDDRightGlyphHeightH,
- // false,
- // false
- // )
- // );
- m_nPushBtnSimpleGlyphHeightV = 20;
- m_nPushBtnSDDLeftGlyphHeightV = 23;
- m_nPushBtnSDDRightGlyphHeightV = 10;
- VERIFY(
- m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_BUTTON_R2_LUNA_BLUE_SIMPLE )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_BUTTON_R2_LUNA_BLUE_LEFT_PART )
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_BUTTON_R2_LUNA_BLUE_RIGHT_PART )
- )
- );
- // m_arrBmpPushBtnSimpleH.PreMultipliedRGBChannelsSet( true );
- // m_arrBmpPushBtnSDDLeftH.PreMultipliedRGBChannelsSet( true );
- // m_arrBmpPushBtnSDDRightH.PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
- m_arrBmpPushBtnSimpleH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSimpleH.GetSize().cx,
- m_nPushBtnSimpleGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDLeftH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDLeftH.GetSize().cx,
- m_nPushBtnSDDLeftGlyphHeightH,
- false,
- false
- )
- );
- VERIFY(
- m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
- m_arrBmpPushBtnSDDRightH,
- 90,
- INT(__EPBGT_GLYPH_COUNT),
- m_arrBmpPushBtnSDDRightH.GetSize().cx,
- m_nPushBtnSDDRightGlyphHeightH,
- false,
- false
- )
- );
- #if (!defined __EXT_MFC_NO_RIBBON_BAR)
- m_nQatbAdditionalSpaceAtRightDWM = 30;
- m_clrContractedMargin1 = RGB(213,226,243);
- m_clrContractedMargin2 = RGB(155,187,227);
- m_nContractedMarginHeight = 2;
- m_bRibbonGroupCaptionAtTop = false;
- m_bRibbonGroupCaptionAreaHasPadding = true;
- m_nRibbonGroupCaptionAreaHeightExpanded = 16;
- m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
- m_nRibbonCaptionPartHeight = 17;
- m_nRibbonGroupIconBkVertOffset = 2;
- m_clrRibbonComboBackGroundNormal = RGB(234,242,251);
- m_nRibbonTabIntersectionHeight = 1;
- m_clrRibbonGroupCaptionTextCollapsed
- = m_clrRibbonButtonNormal
- = RGB( 45, 83, 144 );
- m_clrRibbonButtonDisabled = RGB(128,128,128);
- // m_clrRibbonGroupCaptionTextExpanded = RGB( 45, 83, 115 );
- m_clrRibbonGroupCaptionTextExpanded = RGB( 65, 115, 175 );
- m_nRibbonGroupCaptionTextDF
- = m_nRibbonGroupCaptionTextShadowDF
- = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
- m_rcRibbonPageBkPadding.SetRect( 5, 19, 5, 10 );
- VERIFY(
- m_bmpRibbonPageBk.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_PAGE_BK_R2_LUNA_BLUE)
- )
- );
- m_bmpRibbonPageBk.PreMultipliedRGBChannelsSet( true );
-
- m_rcRibbonGroupPaddingBkExpanded.SetRect( 4, 4, 4, 4 );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_LUNA_BLUE)
- )
- );
- VERIFY(
- m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_LUNA_BLUE)
- )
- );
-
- m_rcRibbonGroupPaddingBkCollapsed.SetRect( 4, 18, 4, 4 );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_LUNA_BLUE)
- )
- );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_LUNA_BLUE)
- )
- );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_LUNA_BLUE)
- )
- );
- VERIFY(
- m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_SELECTED_BK_R2)
- )
- );
- INT nBkIndex, nBkCount;
- nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
- for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- {
- m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
- m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
- for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- {
- m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
- m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
- // VERIFY(
- // m_bmpRibbonIconBkCollapsed[0].LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_ICON_COLLAPSED_NORMAL_BK_R2_LUNA_BLUE)
- // )
- // );
- // VERIFY(
- // m_bmpRibbonIconBkCollapsed[1].LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_ICON_COLLAPSED_HOVER_BK_R2_LUNA_BLUE)
- // )
- // );
- // VERIFY(
- // m_bmpRibbonIconBkCollapsed[2].LoadBMP_Resource(
- // MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_ICON_COLLAPSED_PRESSED_BK_R2_LUNA_BLUE)
- // )
- // );
- VERIFY(
- m_bmpRibbonIconBkCF.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_COLLAPSED_ICON_FRAME_R2_LUNA_BLUE)
- )
- );
- m_bmpRibbonIconBkCF.PreMultiplyRGBChannels( false );
- // m_bmpRibbonIconBkCF.PreMultipliedRGBChannelsSet( true );
- m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
- m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
- m_rcRibbonSeparatorPaddingH.SetRect( 6, 0, 6, 0 );
- VERIFY(
- m_bmpRibbonSeparatorH.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_SEPARATOR_H_R2_LUNA_BLUE)
- )
- );
- VERIFY( m_bmpRibbonSeparatorH.Make32() );
- m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_rcRibbonSeparatorPaddingV.SetRect( 0, 6, 0, 6 );
- VERIFY(
- m_bmpRibbonSeparatorV.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_SEPARATOR_V_R2_LUNA_BLUE)
- )
- );
- VERIFY( m_bmpRibbonSeparatorV.Make32() );
- m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- m_nRibbonHeightOfQACEB = 22;
- m_nIdxRibbonQACEB_Selected = 3;
- VERIFY(
- m_bmpArrRibbonQACEB.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_QATB_CEB_R2_LUNA_BLUE)
- )
- );
- m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
- m_clrRibbon_EmbeddedCaptionTextLeft = RGB(100,100,100);
- m_clrRibbon_EmbeddedCaptionTextRight = RGB( 65, 115, 175 );;
- m_bRibbonFileButtonItegrationSupported = true;
- INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
- INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
- CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
- m_rcRibbonNcCornerLeftCP.SetRect( 22, 8, 2, 2 );
- m_rcRibbonNcCornerRightCP.SetRect( 2, 8, 22, 2 );
- VERIFY(
- m_bmpRibbonNcCornerActiveLeft.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_ACTIVE_LEFT_R2_LUNA_BLUE)
- )
- );
- m_bmpRibbonNcCornerActiveLeft.PreMultipliedRGBChannelsSet( true );
- // m_bmpRibbonNcCornerActiveLeft.Make32();
- // m_bmpRibbonNcCornerActiveLeft.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- m_bmpRibbonNcCornerActiveLeft.Scale(
- m_bmpRibbonNcCornerActiveLeft.GetSize().cx,
- nCaptionHeightActive,
- _fBox
- );
- VERIFY(
- m_bmpRibbonNcCornerInactiveLeft.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_INACTIVE_LEFT_R2_LUNA_BLUE)
- )
- );
- m_bmpRibbonNcCornerInactiveLeft.PreMultipliedRGBChannelsSet( true );
- // m_bmpRibbonNcCornerInactiveLeft.Make32();
- // m_bmpRibbonNcCornerInactiveLeft.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- m_bmpRibbonNcCornerInactiveLeft.Scale(
- m_bmpRibbonNcCornerInactiveLeft.GetSize().cx,
- nCaptionHeightInactive,
- _fBox
- );
- VERIFY(
- m_bmpRibbonNcCornerActiveRight.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_ACTIVE_RIGHT_R2_LUNA_BLUE)
- )
- );
- m_bmpRibbonNcCornerActiveRight.PreMultipliedRGBChannelsSet( true );
- // m_bmpRibbonNcCornerActiveRight.Make32();
- // m_bmpRibbonNcCornerActiveRight.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- m_bmpRibbonNcCornerActiveRight.Scale(
- m_bmpRibbonNcCornerActiveRight.GetSize().cx,
- nCaptionHeightActive,
- _fBox
- );
- VERIFY(
- m_bmpRibbonNcCornerInactiveRight.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_INACTIVE_RIGHT_R2_LUNA_BLUE)
- )
- );
- m_bmpRibbonNcCornerInactiveRight.PreMultipliedRGBChannelsSet( true );
- // m_bmpRibbonNcCornerInactiveRight.Make32();
- // m_bmpRibbonNcCornerInactiveRight.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
- m_bmpRibbonNcCornerInactiveRight.Scale(
- m_bmpRibbonNcCornerInactiveRight.GetSize().cx,
- nCaptionHeightInactive,
- _fBox
- );
- VERIFY(
- m_bmpRibbonNcCornerHT.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_HT_MASK_R2_LUNA_BLUE)
- )
- );
- m_bmpRibbonNcCornerHT.Make32();
- m_bmpRibbonNcCornerHT.Scale(
- m_bmpRibbonNcCornerHT.GetSize().cx,
- nCaptionHeightActive,
- _fBox
- );
- VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_FILE_BUTTON_R2_LUNA_BLUE) ) );
- //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
- m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 3, 3, 3, 3 );
- VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_QATB_BK_R2_LUNA_BLUE) ) );
- m_nRibbonHeightOfOneDLB = 14;
- m_nDlbIdxDisabled = 3;
- m_nDlbIdxNormal = 0;
- m_nDlbIdxHover = 1;
- m_nDlbIdxPressed = 2;
- rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
- VERIFY( m_arrBmpRibbonDLB.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_GCB_R2_LUNA_BLUE) ) );
- m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
- m_clrRibbonGalleryInplaceBorderNormal = RGB(185,208,237);
- m_clrRibbonGalleryInplaceBorderHover = RGB(185,208,237);
- m_clrRibbonGalleryInplaceBkgndNormal = RGB(212,230,248);
- m_clrRibbonGalleryInplaceBkgndHover = RGB(236,243,251);
- m_rcRibbonGalleryScrollFill = RGB(212,230,248);
- m_rcRibbonGalleryScrollButtonPadding.SetRect( 4, 4, 4, 4 );
- m_nHeightRibbonGalleryScrollButton = -1;
- m_nIndexRibbonGalleryScrollButtonDisabled = 4;
- m_nIndexRibbonGalleryScrollButtonNormal = 1;
- m_nIndexRibbonGalleryScrollButtonHover = 2;
- m_nIndexRibbonGalleryScrollButtonPressed = 3;
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RGIBTN_DOWN_R2_LUNA_BLUE)
- )
- );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RGIBTN_UP_R2_LUNA_BLUE)
- )
- );
- VERIFY(
- m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RGIBTN_MENU_R2_LUNA_BLUE)
- )
- );
- #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
- VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_DDA_R2_LUNA_BLUE) ) );
- VERIFY( m_bmpRibbonDDA.Make32() );
- m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
- VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_COMBO_BOX_BUTTON_R2_LUNA_BLUE) ) );
- // tool buttons 2007
- m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = 0;
- m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 3;
- m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 2;
- m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 3;
- m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 1;
- m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 0;
- m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 5;
- m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
- m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 4;
- m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 3;
- m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
- m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
- m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
- m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
- m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 0;
- m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 0;
- // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
- // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
- // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
- // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 0;
- // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 5;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 2;
- m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 3;
- m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 4;
- m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 5;
- m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
- m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 4;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 2;
- m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 2;
- m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 3;
- m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 4;
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_SOLID_R2_LUNA_BLUE)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_LEFT_R2_LUNA_BLUE)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_MIDDLE_R2_LUNA_BLUE)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_RIGHT_R2_LUNA_BLUE)
- )
- );
- m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_SMALL_LEFT_R2)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
- VERIFY(
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
- MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_SMALL_RIGHT_R2)
- )
- );
- m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
- m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
- if( ! m_bmpArrButtonSS_simple.IsEmpty() )
- {
- CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
- INT nY = 0, nXRange = _sizeBmp.cx / 2;
- for( ; nY < _sizeBmp.cy; nY ++ )
- {
- INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
- for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
- {
- RGBQUAD _pixel;
- VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
- VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
- } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )