zoukankan      html  css  js  c++  java
  • DrGraph软件升级:窗口背景色处理

    简要说明

    背景色

    提交人

    DrGraph 2013/04/27

    处理状态

    处理完毕

    同步状态

     

    现象

    界面

    定位及调试过程

    1. 还是界面问题:选择皮肤后,背景色老是不变

    1. 先实现能以过渡色画出背景的效果

    void __fastcall DrawBackground(TCanvas * canvas, TRect rect,

        TCbwBrushData * FBrushData) {

        if (!FBrushData)

            return;

        TCbwPenData * FPenData = new TCbwPenData;

        FPenData->Style = psClear;

        TPoint DrawPoints[2];

        DrawPoints[0] = TPoint(rect.Left, rect.Top);

        DrawPoints[1] = TPoint(rect.Right, rect.Bottom);

        TGlobalVariables::GdiModule.PreDraw(canvas, FPenData, 1, FBrushData, NULL);

        TGlobalVariables::GdiModule.Draw(canvas, FPenData, 1, FBrushData, NULL,

            DrawPoints, 2, cdtRectangle, NULL);

        delete FPenData;

    }

     

    void __fastcall DrawBackground(TCanvas * canvas, TControl * control,

        TCbwBrushData * FBrushData, bool selfFlag) {

        TRect destRect;

        if (selfFlag)

            destRect = control->ClientRect;

        else

            destRect = Application->MainForm->ClientRect;

        DrawBackground(canvas, destRect, FBrushData);

    }

     

    void __fastcall DrawBackground(TWinControl * control,

        TCbwBrushData * FBrushData, bool selfFlag) {

        if (!FBrushData)

            return;

        TCanvas * canvas = new TCanvas;

        canvas->Handle = GetDC(control->Handle);

        DrawBackground(canvas, control, FBrushData, selfFlag);

        delete canvas;

    }

    可得到红色与白色过渡效果图:

    1. 设置皮肤时,取得相应颜色:

    TColor color = Ribbon->ColorScheme->GetPartColor(rfspRibbonForm);

    换几个皮肤,还是没有效果,背景还是那么灰不溜的。

    找一下rfspRibbonForm的定义,发现一大堆:

    static const Word rfspActiveCaption = 0x2710;

    static const Word rfspInactiveCaption = 0x2711;

    static const Word rfspActiveCaptionZoomed = 0x2712;

    static const Word rfspInactiveCaptionZoomed = 0x2713;

    static const Word rfspActiveCaptionLeftBorder = 0x2714;

    static const Word rfspInactiveCaptionLeftBorder = 0x2715;

    static const Word rfspActiveCaptionRightBorder = 0x2716;

    static const Word rfspInactiveCaptionRightBorder = 0x2717;

    static const Word rfspActiveLeftBorder = 0x2718;

    static const Word rfspInactiveLeftBorder = 0x2719;

    static const Word rfspActiveRightBorder = 0x271a;

    static const Word rfspInactiveRightBorder = 0x271b;

    static const Word rfspActiveBottomBorderThin = 0x271c;

    static const Word rfspInactiveBottomBorderThin = 0x271d;

    static const Word rfspActiveBottomBorderThick = 0x271e;

    static const Word rfspInactiveBottomBorderThick = 0x271f;

    static const Word rfspActiveBottomBorderThickRectangular = 0x2720;

    static const Word rfspInactiveBottomBorderThickRectangular = 0x2721;

    static const Word rfspRibbonForm = 0x2722;

    static const Word rfspBorderIconHot = 0x2724;

    static const Word rfspBorderIconPressed = 0x2725;

    static const Word rfspBorderIconInactiveHot = 0x2726;

    static const Word rfspMinimizeNormalIconGlyph = 0x2727;

    static const Word rfspMinimizeHotIconGlyph = 0x2728;

    static const Word rfspMinimizePressedIconGlyph = 0x2729;

    static const Word rfspMinimizeInactiveIconGlyph = 0x272a;

    static const Word rfspMaximizeNormalIconGlyph = 0x272b;

    static const Word rfspMaximizeHotIconGlyph = 0x272c;

    static const Word rfspMaximizePressedIconGlyph = 0x272d;

    static const Word rfspMaximizeInactiveIconGlyph = 0x272e;

    static const Word rfspCloseNormalIconGlyph = 0x272f;

    static const Word rfspCloseHotIconGlyph = 0x2730;

    static const Word rfspClosePressedIconGlyph = 0x2731;

    static const Word rfspCloseInactiveIconGlyph = 0x2732;

    static const Word rfspRestoreNormalIconGlyph = 0x2733;

    static const Word rfspRestoreHotIconGlyph = 0x2734;

    static const Word rfspRestorePressedIconGlyph = 0x2735;

    static const Word rfspRestoreInactiveIconGlyph = 0x2736;

    static const Word rfspHelpNormalIconGlyph = 0x2737;

    static const Word rfspHelpHotIconGlyph = 0x2738;

    static const Word rfspHelpPressedIconGlyph = 0x2739;

    static const Word rfspHelpInactiveIconGlyph = 0x273a;

    static const Word rspTabNormal = 0x273b;

    static const Word rspTabHot = 0x273c;

    static const Word rspTabActive = 0x273d;

    static const Word rspTabActiveHot = 0x273e;

    static const Word rspTabFocused = 0x273f;

    static const Word rspTabGroupsArea = 0x2740;

    static const Word rspTabGroupsArea2 = 0x2741;

    static const Word rspTabSeparator = 0x2742;

    static const Word rspTabGroupsAreaInPopup = 0x2743;

    static const Word rspQATDefaultGlyph = 0x2744;

    static const Word rspQATAtBottom = 0x2745;

    static const Word rspRibbonClientTopArea = 0x2746;

    static const Word rspQATNonClientLeft1Vista = 0x2747;

    static const Word rspQATNonClientLeft2Vista = 0x2748;

    static const Word rspQATNonClientRightVista = 0x2749;

    static const Word rspQATPopup = 0x274a;

    static const Word rspQATNonClientLeft1Active = 0x274b;

    static const Word rspQATNonClientLeft1Inactive = 0x274c;

    static const Word rspQATNonClientLeft2Active = 0x274d;

    static const Word rspQATNonClientLeft2Inactive = 0x274e;

    static const Word rspQATNonClientRightActive = 0x274f;

    static const Word rspQATNonClientRightInactive = 0x2750;

    static const Word rspRibbonBackground = 0x2751;

    static const Word rspRibbonBottomEdge = 0x2752;

    static const Word rspApplicationMenuBorder = 0x2756;

    static const Word rspApplicationMenuContentHeader = 0x2757;

    static const Word rspApplicationMenuContentFooter = 0x2758;

    static const Word rspDropDownBorder = 0x2759;

    static const Word rspMenuContent = 0x275a;

    static const Word rspMenuGlyph = 0x275b;

    static const Word rspMenuMark = 0x275c;

    static const Word rspMenuSeparatorHorz = 0x275d;

    static const Word rspMenuSeparatorVert = 0x275e;

    static const Word rspMenuArrowDown = 0x275f;

    static const Word rspMenuArrowRight = 0x2760;

    static const Word rspProgressSolidBand = 0x2761;

    static const Word rspProgressDiscreteBand = 0x2762;

    static const Word rspProgressSubstrate = 0x2763;

    static const Word rspButtonGroupBorderLeft = 0x2764;

    static const Word rspButtonGroupBorderRight = 0x2765;

    static const Word rspScrollArrow = 0x2766;

    static const Word rspScreenTip = 0x2767;

    static const Word rspHelpButton = 0x2768;

    static const Word rspApplicationMenuButton = 0x2769;

    static const Word rspStatusBar = 0x276a;

    static const Word rspStatusBarPanel = 0x276b;

    static const Word rspStatusBarPanelLowered = 0x276c;

    static const Word rspStatusBarPanelRaised = 0x276d;

    static const Word rspStatusBarPanelSeparator = 0x276e;

    static const Word rspStatusBarGripBackground = 0x276f;

    static const Word rspStatusBarToolbarSeparator = 0x2770;

    static const Word rspStatusBarSizeGripColor1 = 0x2772;

    static const Word rspStatusBarSizeGripColor2 = 0x2773;

    static const Word rspStatusBarFormLeftPart = 0x2774;

    static const Word rspStatusBarFormRightPart = 0x2778;

    static const Word rspStatusBarFormLeftPartDialog = 0x277c;

    static const Word rspStatusBarFormRightPartDialog = 0x2780;

    static const Word rspDropDownGalleryTopSizingBand = 0x2788;

    static const Word rspDropDownGalleryBottomSizingBand = 0x2789;

    static const Word rspDropDownGalleryTopSizeGrip = 0x278a;

    static const Word rspDropDownGalleryBottomSizeGrip = 0x278b;

    static const Word rspDropDownGalleryVerticalSizeGrip = 0x278c;

    static const Word rspGalleryFilterBand = 0x278d;

    static const Word rspGalleryGroupHeader = 0x278e;

    static const Word rspFormCaptionText = 0x2792;

    static const Word rspDocumentNameText = 0x2793;

    static const Word rspTabHeaderText = 0x2794;

    static const Word rspTabGroupText = 0x2795;

    static const Word rspTabGroupHeaderText = 0x2796;

    static const Word rspStatusBarText = 0x279a;

    static const Word rspContextText = 0x279b;

    static const Word rspContextTextOnGlass = 0x279c;

    static const Word rspContextTextShadow = 0x279d;

    static const Word rspContextTextOnGlassShadow = 0x279e;

    static const Word rspContextTabNormal = 0x279f;

    static const Word rspContextTabHot = 0x27a0;

    static const Word rspContextTabActive = 0x27a1;

    static const Word rspContextTabActiveHot = 0x27a2;

    static const Word rspContextTabFocused = 0x27a3;

    static const Word rspContextTabGroupsArea = 0x27a4;

    static const Word rspContextTabGroupsArea2 = 0x27a5;

    static const Word rspContextTabSeparatorBegin = 0x27a6;

    static const Word rspContextTabSeparatorEnd = 0x27a7;

    static const Word rspContextBackground = 0x27a8;

    static const Word rspContextBackgroundGlass = 0x27a9;

    static const Word rspContextTabHeaderText = 0x27aa;

    static const Word rspQATGroupButtonActive = 0x27d8;

    static const Word rspQATGroupButtonInactive = 0x27e1;

    static const Word rspArrowDownNormal = 0x27ea;

    static const Word rspMenuDetachCaptionNormal = 0x27f3;

    static const Word rspMenuCheckNormal = 0x27fc;

    static const Word rspMenuCheckMarkNormal = 0x2805;

    static const Word rspMenuScrollAreaNormal = 0x280e;

    static const Word rspCollapsedToolbarNormal = 0x2817;

    static const Word rspCollapsedToolbarGlyphBackgroundNormal = 0x2820;

    static const Word rspEditButtonNormal = 0x2829;

    static const Word rspSmallButtonNormal = 0x2832;

    static const Word rspSmallButtonGlyphBackgroundNormal = 0x283b;

    static const Word rspSmallButtonDropButtonNormal = 0x2844;

    static const Word rspLargeButtonNormal = 0x284d;

    static const Word rspLargeButtonGlyphBackgroundNormal = 0x2856;

    static const Word rspLargeButtonDropButtonNormal = 0x285f;

    static const Word rspButtonGroupNormal = 0x2868;

    static const Word rspButtonGroupBorderMiddleNormal = 0x2871;

    static const Word rspButtonGroupSplitButtonSeparatorNormal = 0x287a;

    static const Word rspToolbarNormal = 0x2883;

    static const Word rspToolbarHeaderNormal = 0x288c;

    static const Word rspMarkArrowNormal = 0x2895;

    static const Word rspMarkTruncatedNormal = 0x289e;

    static const Word rspLaunchButtonBackgroundNormal = 0x28a7;

    static const Word rspLaunchButtonDefaultGlyphNormal = 0x28b0;

    static const Word rspTabScrollLeftButtonNormal = 0x28b9;

    static const Word rspTabScrollRightButtonNormal = 0x28c2;

    static const Word rspGroupScrollLeftButtonNormal = 0x28cb;

    static const Word rspGroupScrollRightButtonNormal = 0x28d4;

    static const Word rspInRibbonGalleryScrollBarLineUpButtonNormal = 0x28dd;

    static const Word rspInRibbonGalleryScrollBarLineUpButtonGlyphNormal = 0x28e6;

    static const Word rspInRibbonGalleryScrollBarLineDownButtonNormal = 0x28ef;

    static const Word rspInRibbonGalleryScrollBarLineDownButtonGlyphNormal = 0x28f8;

    static const Word rspInRibbonGalleryScrollBarDropDownButtonNormal = 0x2901;

    static const Word rspInRibbonGalleryScrollBarDropDownButtonGlyphNormal = 0x290a;

    static const Word rfspCloseButtonHot = 0x2913;

    static const Word rfspCloseButtonPressed = 0x2914;

    static const Word rfspCloseButtonInactiveHot = 0x2915;

    static const Word rspMinimizeRibbonButtonMinimize = 0x2916;

    static const Word rspMinimizeRibbonButtonRestore = 0x2918;

    static const Word rspMinimizeRibbonButtonPin = 0x291a;

    static const Word rspItemSeparatorHorizontal = 0x291c;

    static const Word rspItemSeparatorVertical = 0x291d;

    static const Word rspMDIButtonMinimize = 0x291e;

    static const Word rspMDIButtonRestore = 0x2922;

    static const Word rspMDIButtonClose = 0x2926;

    static const Word rspTabsAreaOnGlass = 0x292a;

    static const Word rspContextBackgroundMask = 0x292b;

    static const Word rspContextTabMaskNormal = 0x292c;

    static const Word rspContextTabMaskHot = 0x292d;

    static const Word rspContextTabMaskActive = 0x292e;

    static const Word rspContextTabMaskActiveHot = 0x292f;

    static const Word rspContextTabMaskFocused = 0x2930;

    static const Word rbvpBackstageView = 0x2931;

    static const Word rbvpBackstageViewFrame = 0x2932;

    static const Word rbvpBackstageViewMenu = 0x2937;

    static const Word rbvpBackstageViewMenuItem = 0x2938;

    static const Word rbvpBackstageViewMenuItemHeight = 0x2942;

    static const Word rbvpBackstageViewMenuTabButton = 0x2943;

    static const Word rbvpBackstageViewMenuTabButtonHeight = 0x2957;

    static const Word rbvpBackstageViewMenuTabButtonArrow = 0x2958;

    static const Word rspPinButtonGlyph = 0x2959;

    static const Word rspApplicationButton = 0x295b;

    再试几个,还是一样的效果。

    干脆试试所有的效果,把结果输出:

        UnicodeString info = "";

        for(WORD i = rfspActiveCaption; i <= rspApplicationButton; ++i) {

            TColor color = Ribbon->ColorScheme->GetPartColor(i);

            info += THelper::FormatString("%02x = %d %d %d\r\n",

                i, GetRValue(color), GetGValue(color), GetBValue(color) );

        }

        CBW_LOG(info, qdtForbid);

    设置Camerel皮肤,Ribbon界面为:

    输出日志:

    2710 = 240 240 240

    2711 = 240 240 240

    2712 = 240 240 240

    2713 = 240 240 240

    2714 = 240 240 240

    2715 = 240 240 240

    2716 = 240 240 240

    2717 = 240 240 240

    2718 = 240 240 240

    2719 = 240 240 240

    271a = 240 240 240

    271b = 240 240 240

    271c = 240 240 240

    271d = 240 240 240

    271e = 240 240 240

    271f = 240 240 240

    2720 = 240 240 240

    2721 = 240 240 240

    2722 = 247 245 241

    2723 = 240 240 240

    2724 = 240 240 240

    2725 = 240 240 240

    2726 = 240 240 240

    2727 = 240 240 240

    2728 = 240 240 240

    2729 = 240 240 240

    272a = 240 240 240

    272b = 240 240 240

    272c = 240 240 240

    272d = 240 240 240

    272e = 240 240 240

    272f = 240 240 240

    2730 = 240 240 240

    2731 = 240 240 240

    2732 = 240 240 240

    2733 = 240 240 240

    2734 = 240 240 240

    2735 = 240 240 240

    2736 = 240 240 240

    2737 = 240 240 240

    2738 = 240 240 240

    2739 = 240 240 240

    273a = 240 240 240

    273b = 240 240 240

    273c = 240 240 240

    273d = 240 240 240

    273e = 240 240 240

    273f = 240 240 240

    2740 = 240 240 240

    2741 = 240 240 240

    2742 = 240 240 240

    2743 = 240 240 240

    2744 = 240 240 240

    2745 = 240 240 240

    2746 = 240 240 240

    2747 = 240 240 240

    2748 = 240 240 240

    2749 = 240 240 240

    274a = 240 240 240

    274b = 240 240 240

    274c = 240 240 240

    274d = 240 240 240

    274e = 240 240 240

    274f = 240 240 240

    2750 = 240 240 240

    2751 = 247 245 241

    2752 = 213 226 243

    2753 = 240 240 240

    2754 = 240 240 240

    2755 = 240 240 240

    2756 = 240 240 240

    2757 = 240 240 240

    2758 = 240 240 240

    2759 = 240 240 240

    275a = 240 240 240

    275b = 240 240 240

    275c = 240 240 240

    275d = 240 240 240

    275e = 240 240 240

    275f = 240 240 240

    2760 = 240 240 240

    2761 = 240 240 240

    2762 = 240 240 240

    2763 = 240 240 240

    2764 = 240 240 240

    2765 = 240 240 240

    2766 = 240 240 240

    2767 = 240 240 240

    2768 = 240 240 240

    2769 = 240 240 240

    276a = 240 240 240

    276b = 240 240 240

    276c = 240 240 240

    276d = 240 240 240

    276e = 240 240 240

    276f = 240 240 240

    2770 = 240 240 240

    2771 = 240 240 240

    2772 = 240 240 240

    2773 = 240 240 240

    2774 = 240 240 240

    2775 = 240 240 240

    2776 = 240 240 240

    2777 = 240 240 240

    2778 = 240 240 240

    2779 = 240 240 240

    277a = 240 240 240

    277b = 240 240 240

    277c = 240 240 240

    277d = 240 240 240

    277e = 240 240 240

    277f = 240 240 240

    2780 = 240 240 240

    2781 = 240 240 240

    2782 = 240 240 240

    2783 = 240 240 240

    2784 = 240 240 240

    2785 = 240 240 240

    2786 = 240 240 240

    2787 = 240 240 240

    2788 = 240 240 240

    2789 = 240 240 240

    278a = 240 240 240

    278b = 240 240 240

    278c = 240 240 240

    278d = 240 240 240

    278e = 240 240 240

    278f = 240 240 240

    2790 = 240 240 240

    2791 = 240 240 240

    2792 = 221 213 200

    2793 = 255 255 255

    2794 = 0 0 0

    2795 = 0 0 0

    2796 = 0 0 0

    2797 = 240 240 240

    2798 = 240 240 240

    2799 = 240 240 240

    279a = 0 0 0

    279b = 0 0 0

    279c = 0 0 0

    279d = 255 255 255

    279e = 255 255 255

    279f = 240 240 240

    27a0 = 240 240 240

    27a1 = 240 240 240

    27a2 = 240 240 240

    27a3 = 240 240 240

    27a4 = 240 240 240

    27a5 = 240 240 240

    27a6 = 240 240 240

    27a7 = 240 240 240

    27a8 = 240 240 240

    27a9 = 240 240 240

    27aa = 0 0 0

    27ab = 240 240 240

    27ac = 240 240 240

    27ad = 240 240 240

    27ae = 240 240 240

    27af = 240 240 240

    27b0 = 240 240 240

    27b1 = 240 240 240

    27b2 = 240 240 240

    27b3 = 240 240 240

    27b4 = 240 240 240

    27b5 = 240 240 240

    27b6 = 240 240 240

    27b7 = 240 240 240

    27b8 = 240 240 240

    27b9 = 240 240 240

    27ba = 240 240 240

    27bb = 240 240 240

    27bc = 240 240 240

    27bd = 240 240 240

    27be = 240 240 240

    27bf = 240 240 240

    27c0 = 240 240 240

    27c1 = 240 240 240

    27c2 = 240 240 240

    27c3 = 240 240 240

    27c4 = 240 240 240

    27c5 = 240 240 240

    27c6 = 240 240 240

    27c7 = 240 240 240

    27c8 = 240 240 240

    27c9 = 240 240 240

    27ca = 240 240 240

    27cb = 240 240 240

    27cc = 240 240 240

    27cd = 240 240 240

    27ce = 240 240 240

    27cf = 240 240 240

    27d0 = 240 240 240

    27d1 = 240 240 240

    27d2 = 240 240 240

    27d3 = 240 240 240

    27d4 = 240 240 240

    27d5 = 240 240 240

    27d6 = 240 240 240

    27d7 = 240 240 240

    27d8 = 240 240 240

    27d9 = 240 240 240

    27da = 240 240 240

    27db = 240 240 240

    27dc = 240 240 240

    27dd = 240 240 240

    27de = 240 240 240

    27df = 240 240 240

    27e0 = 240 240 240

    27e1 = 240 240 240

    27e2 = 240 240 240

    27e3 = 240 240 240

    27e4 = 240 240 240

    27e5 = 240 240 240

    27e6 = 240 240 240

    27e7 = 240 240 240

    27e8 = 240 240 240

    27e9 = 240 240 240

    27ea = 240 240 240

    27eb = 240 240 240

    27ec = 240 240 240

    27ed = 240 240 240

    27ee = 240 240 240

    27ef = 240 240 240

    27f0 = 240 240 240

    27f1 = 240 240 240

    27f2 = 240 240 240

    27f3 = 240 240 240

    27f4 = 240 240 240

    27f5 = 240 240 240

    27f6 = 240 240 240

    27f7 = 240 240 240

    27f8 = 240 240 240

    27f9 = 240 240 240

    27fa = 240 240 240

    27fb = 240 240 240

    27fc = 240 240 240

    27fd = 240 240 240

    27fe = 240 240 240

    27ff = 240 240 240

    2800 = 240 240 240

    2801 = 240 240 240

    2802 = 240 240 240

    2803 = 240 240 240

    2804 = 240 240 240

    2805 = 240 240 240

    2806 = 240 240 240

    2807 = 240 240 240

    2808 = 240 240 240

    2809 = 240 240 240

    280a = 240 240 240

    280b = 240 240 240

    280c = 240 240 240

    280d = 240 240 240

    280e = 240 240 240

    280f = 240 240 240

    2810 = 240 240 240

    2811 = 240 240 240

    2812 = 240 240 240

    2813 = 240 240 240

    2814 = 240 240 240

    2815 = 240 240 240

    2816 = 240 240 240

    2817 = 240 240 240

    2818 = 240 240 240

    2819 = 240 240 240

    281a = 240 240 240

    281b = 240 240 240

    281c = 240 240 240

    281d = 240 240 240

    281e = 240 240 240

    281f = 240 240 240

    2820 = 240 240 240

    2821 = 240 240 240

    2822 = 240 240 240

    2823 = 240 240 240

    2824 = 240 240 240

    2825 = 240 240 240

    2826 = 240 240 240

    2827 = 240 240 240

    2828 = 240 240 240

    2829 = 240 240 240

    282a = 240 240 240

    282b = 240 240 240

    282c = 240 240 240

    282d = 240 240 240

    282e = 240 240 240

    282f = 240 240 240

    2830 = 240 240 240

    2831 = 240 240 240

    2832 = 240 240 240

    2833 = 240 240 240

    2834 = 240 240 240

    2835 = 240 240 240

    2836 = 240 240 240

    2837 = 240 240 240

    2838 = 240 240 240

    2839 = 240 240 240

    283a = 240 240 240

    283b = 240 240 240

    283c = 240 240 240

    283d = 240 240 240

    283e = 240 240 240

    283f = 240 240 240

    2840 = 240 240 240

    2841 = 240 240 240

    2842 = 240 240 240

    2843 = 240 240 240

    2844 = 240 240 240

    2845 = 240 240 240

    2846 = 240 240 240

    2847 = 240 240 240

    2848 = 240 240 240

    2849 = 240 240 240

    284a = 240 240 240

    284b = 240 240 240

    284c = 240 240 240

    284d = 240 240 240

    284e = 240 240 240

    284f = 240 240 240

    2850 = 240 240 240

    2851 = 240 240 240

    2852 = 240 240 240

    2853 = 240 240 240

    2854 = 240 240 240

    2855 = 240 240 240

    2856 = 240 240 240

    2857 = 240 240 240

    2858 = 240 240 240

    2859 = 240 240 240

    285a = 240 240 240

    285b = 240 240 240

    285c = 240 240 240

    285d = 240 240 240

    285e = 240 240 240

    285f = 240 240 240

    2860 = 240 240 240

    2861 = 240 240 240

    2862 = 240 240 240

    2863 = 240 240 240

    2864 = 240 240 240

    2865 = 240 240 240

    2866 = 240 240 240

    2867 = 240 240 240

    2868 = 240 240 240

    2869 = 240 240 240

    286a = 240 240 240

    286b = 240 240 240

    286c = 240 240 240

    286d = 240 240 240

    286e = 240 240 240

    286f = 240 240 240

    2870 = 240 240 240

    2871 = 240 240 240

    2872 = 240 240 240

    2873 = 240 240 240

    2874 = 240 240 240

    2875 = 240 240 240

    2876 = 240 240 240

    2877 = 240 240 240

    2878 = 240 240 240

    2879 = 240 240 240

    287a = 240 240 240

    287b = 240 240 240

    287c = 240 240 240

    287d = 240 240 240

    287e = 240 240 240

    287f = 240 240 240

    2880 = 240 240 240

    2881 = 240 240 240

    2882 = 240 240 240

    2883 = 240 240 240

    2884 = 240 240 240

    2885 = 240 240 240

    2886 = 240 240 240

    2887 = 240 240 240

    2888 = 240 240 240

    2889 = 240 240 240

    288a = 240 240 240

    288b = 240 240 240

    288c = 240 240 240

    288d = 240 240 240

    288e = 240 240 240

    288f = 240 240 240

    2890 = 240 240 240

    2891 = 240 240 240

    2892 = 240 240 240

    2893 = 240 240 240

    2894 = 240 240 240

    2895 = 240 240 240

    2896 = 240 240 240

    2897 = 240 240 240

    2898 = 240 240 240

    2899 = 240 240 240

    289a = 240 240 240

    289b = 240 240 240

    289c = 240 240 240

    289d = 240 240 240

    289e = 240 240 240

    289f = 240 240 240

    28a0 = 240 240 240

    28a1 = 240 240 240

    28a2 = 240 240 240

    28a3 = 240 240 240

    28a4 = 240 240 240

    28a5 = 240 240 240

    28a6 = 240 240 240

    28a7 = 240 240 240

    28a8 = 240 240 240

    28a9 = 240 240 240

    28aa = 240 240 240

    28ab = 240 240 240

    28ac = 240 240 240

    28ad = 240 240 240

    28ae = 240 240 240

    28af = 240 240 240

    28b0 = 240 240 240

    28b1 = 240 240 240

    28b2 = 240 240 240

    28b3 = 240 240 240

    28b4 = 240 240 240

    28b5 = 240 240 240

    28b6 = 240 240 240

    28b7 = 240 240 240

    28b8 = 240 240 240

    28b9 = 240 240 240

    28ba = 240 240 240

    28bb = 240 240 240

    28bc = 240 240 240

    28bd = 240 240 240

    28be = 240 240 240

    28bf = 240 240 240

    28c0 = 240 240 240

    28c1 = 240 240 240

    28c2 = 240 240 240

    28c3 = 240 240 240

    28c4 = 240 240 240

    28c5 = 240 240 240

    28c6 = 240 240 240

    28c7 = 240 240 240

    28c8 = 240 240 240

    28c9 = 240 240 240

    28ca = 240 240 240

    28cb = 240 240 240

    28cc = 240 240 240

    28cd = 240 240 240

    28ce = 240 240 240

    28cf = 240 240 240

    28d0 = 240 240 240

    28d1 = 240 240 240

    28d2 = 240 240 240

    28d3 = 240 240 240

    28d4 = 240 240 240

    28d5 = 240 240 240

    28d6 = 240 240 240

    28d7 = 240 240 240

    28d8 = 240 240 240

    28d9 = 240 240 240

    28da = 240 240 240

    28db = 240 240 240

    28dc = 240 240 240

    28dd = 240 240 240

    28de = 240 240 240

    28df = 240 240 240

    28e0 = 240 240 240

    28e1 = 240 240 240

    28e2 = 240 240 240

    28e3 = 240 240 240

    28e4 = 240 240 240

    28e5 = 240 240 240

    28e6 = 240 240 240

    28e7 = 240 240 240

    28e8 = 240 240 240

    28e9 = 240 240 240

    28ea = 240 240 240

    28eb = 240 240 240

    28ec = 240 240 240

    28ed = 240 240 240

    28ee = 240 240 240

    28ef = 240 240 240

    28f0 = 240 240 240

    28f1 = 240 240 240

    28f2 = 240 240 240

    28f3 = 240 240 240

    28f4 = 240 240 240

    28f5 = 240 240 240

    28f6 = 240 240 240

    28f7 = 240 240 240

    28f8 = 240 240 240

    28f9 = 240 240 240

    28fa = 240 240 240

    28fb = 240 240 240

    28fc = 240 240 240

    28fd = 240 240 240

    28fe = 240 240 240

    28ff = 240 240 240

    2900 = 240 240 240

    2901 = 240 240 240

    2902 = 240 240 240

    2903 = 240 240 240

    2904 = 240 240 240

    2905 = 240 240 240

    2906 = 240 240 240

    2907 = 240 240 240

    2908 = 240 240 240

    2909 = 240 240 240

    290a = 240 240 240

    290b = 240 240 240

    290c = 240 240 240

    290d = 240 240 240

    290e = 240 240 240

    290f = 240 240 240

    2910 = 240 240 240

    2911 = 240 240 240

    2912 = 240 240 240

    2913 = 240 240 240

    2914 = 240 240 240

    2915 = 240 240 240

    2916 = 240 240 240

    2917 = 240 240 240

    2918 = 240 240 240

    2919 = 240 240 240

    291a = 240 240 240

    291b = 240 240 240

    291c = 240 240 240

    291d = 240 240 240

    291e = 240 240 240

    291f = 240 240 240

    2920 = 240 240 240

    2921 = 240 240 240

    2922 = 240 240 240

    2923 = 240 240 240

    2924 = 240 240 240

    2925 = 240 240 240

    2926 = 240 240 240

    2927 = 240 240 240

    2928 = 240 240 240

    2929 = 240 240 240

    292a = 240 240 240

    292b = 240 240 240

    292c = 240 240 240

    292d = 240 240 240

    292e = 240 240 240

    292f = 240 240 240

    2930 = 240 240 240

    2931 = 240 240 240

    2932 = 240 240 240

    2933 = 240 240 240

    2934 = 240 240 240

    2935 = 240 240 240

    2936 = 240 240 240

    2937 = 240 240 240

    2938 = 0 0 0

    2939 = 240 240 240

    293a = 240 240 240

    293b = 240 240 240

    293c = 240 240 240

    293d = 240 240 240

    293e = 240 240 240

    293f = 240 240 240

    2940 = 240 240 240

    2941 = 240 240 240

    2942 = 240 240 240

    2943 = 0 0 0

    2944 = 240 240 240

    2945 = 240 240 240

    2946 = 240 240 240

    2947 = 240 240 240

    2948 = 240 240 240

    2949 = 240 240 240

    294a = 240 240 240

    294b = 240 240 240

    294c = 240 240 240

    294d = 240 240 240

    294e = 240 240 240

    294f = 240 240 240

    2950 = 240 240 240

    2951 = 240 240 240

    2952 = 240 240 240

    2953 = 240 240 240

    2954 = 240 240 240

    2955 = 240 240 240

    2956 = 240 240 240

    2957 = 240 240 240

    2958 = 240 240 240

    2959 = 240 240 240

    295a = 240 240 240

    295b = 0 0 0

    简单分析一下:0 0 0肯定是黑色,不用看了

    240 240 240呢,用画图查看一下:

    原来这就是那个银灰色,这么多个,难怪不变呢

    把这两个去掉,在Notepad++用替换0 0 0为空,240 240 240为空,然后再用正则表达式替换.* = $为空,删掉空行,得到结果:

    2722 = 247 245 241

    2751 = 247 245 241

    2752 = 213 226 243

    2792 = 221 213 200

    2793 = 255 255 255

    279d = 255 255 255

    279e = 255 255 255

    首先看247 245 241

    再看213 226 243

    还剩下221 213 200

    感觉应该是2792 = 221 213 200起作用,2792对应的变量符号为

    static const Word rspFormCaptionText = 0x2792;

    2752 = 213 226 243对应变量符号:rspRibbonBottomEdge = 0x2752

    2722 = 247 245 241 对应变量符号:rfspRibbonForm = 0x2722

    2751 = 247 245 241对应变量符号:rspRibbonBackground = 0x2751

    再换一个,SpringTime,RIBBON界面效果:

    处理后,剩下:

    2722 = 224 250 207

    2751 = 224 250 207

    2752 = 213 226 243

    2792 = 62 106 170

    2793 = 55 62 71

    2794 = 50 67 39

    2795 = 50 67 39

    2796 = 70 87 59

    279a = 50 67 39

    279b = 59 90 130

    27aa = 50 67 39

    2938 = 48 74 31

    2943 = 48 74 31

    295b = 48 74 31

    综合,选定2751 2752,代码为:

        GlobalBrushData->Color1 = Ribbon->ColorScheme->GetPartColor

             (rspRibbonBackground);

        GlobalBrushData->Color2 = Ribbon->ColorScheme->GetPartColor

             (rspRibbonBottomEdge);

    最终效果:

    OK,目标达到。

  • 相关阅读:
    EOJ2032 判断两个数是否相等
    EOJ2529 强大的lwc
    EOJ 1199 Anagram
    EOJ2530 数字之和
    EOJ2941 在线投票系统
    EOJ2124 Seamild的电梯
    EOJ 1027 邮资的问题
    通过js导入js,通过js导入css
    无意间在我系统中发现的一张图~~~~~
    css系列看过之后让我~~~
  • 原文地址:https://www.cnblogs.com/drgraph/p/3046657.html
Copyright © 2011-2022 走看看