代码拉取完成,页面将自动刷新
#include "StdAfx.h"
#include "UISetting.h"
#include "resource.h"
UISetting::UISetting(COLORREF bk, COLORREF line, COLORREF inPen, COLORREF noPen,
COLORREF inBru, COLORREF noBru, COLORREF inTxt,
COLORREF noTxt, COLORREF inIcoTxt, COLORREF noIcoTxt,
UINT inBmp, UINT noBmp, int idFontSize, int barFontSize) :
panelBkColor(bk),
panelLineColor(line),
inUseSnrBarPenColor(inPen),
noUseSnrBarPenColor(noPen),
inUseSnrBarBrushColor(inBru),
noUseSnrBarBrushColor(noBru),
inUseBarTextColor(inTxt),
noUseBarTextColor(noTxt),
inUseIcoTextColor(inIcoTxt),
noUseIcoTextColor(noIcoTxt),
panelBkBrush(bk),
panelLinePen(PS_SOLID, 1, line),
inUseSateBmpId(inBmp),
noUseSateBmpId(noBmp),
inUseSnrBarPen(PS_SOLID, 1, inPen),
inUseSnrBarBrush(inBru),
noUseSnrBarPen(PS_SOLID, 1, noPen),
noUseSnrBarBrush(noBru)
{
idFont.CreateFont(
idFontSize, // LONG lfHeight;
0, // LONG lfWidth;
0, // LONG lfEscapement;
0, // LONG lfOrientation;
400,// LONG lfWeight;
0, // BYTE lfItalic;
0, // BYTE lfUnderline;
0, // BYTE lfStrikeOut;
DEFAULT_CHARSET, // BYTE lfCharSet;
OUT_DEFAULT_PRECIS, // BYTE lfOutPrecision;
CLIP_DEFAULT_PRECIS, // BYTE lfClipPrecision;
DEFAULT_QUALITY, // BYTE lfQuality;
DEFAULT_PITCH, // BYTE lfPitchAndFamily;
"Impact" // WCHAR lfFaceName[LF_FACESIZE];
);
barFont.CreateFont(
barFontSize, // LONG lfHeight;
0, // LONG lfWidth;
0, // LONG lfEscapement;
0, // LONG lfOrientation;
200,// LONG lfWeight;
0, // BYTE lfItalic;
0, // BYTE lfUnderline;
0, // BYTE lfStrikeOut;
DEFAULT_CHARSET, // BYTE lfCharSet;
OUT_DEFAULT_PRECIS, // BYTE lfOutPrecision;
CLIP_DEFAULT_PRECIS, // BYTE lfClipPrecision;
DEFAULT_QUALITY, // BYTE lfQuality;
DEFAULT_PITCH, // BYTE lfPitchAndFamily;
"Arial" // WCHAR lfFaceName[LF_FACESIZE];
);
}
UISetting::~UISetting(void)
{
barFont.DeleteObject();
idFont.DeleteObject();
panelBkBrush.DeleteObject();
panelLinePen.DeleteObject();
inUseSnrBarPen.DeleteObject();
inUseSnrBarBrush.DeleteObject();
noUseSnrBarPen.DeleteObject();
noUseSnrBarBrush.DeleteObject();
}
UISetting gpUI(RGB(255, 255, 204), RGB(150, 150, 150),
RGB(200, 200, 200), RGB( 26, 144, 255),
RGB( 26, 144, 255), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128), //inTxt, noTxt
RGB(255, 255, 255), RGB( 61, 179, 255), //inIcoTxt, noIcoTxt,
IDB_GP_ACT, IDB_GP_DIS);
UISetting glUI(RGB(255, 255, 204), RGB(150, 150, 150),
RGB(200, 200, 200), RGB(156, 102, 204),
RGB(156, 102, 204), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB(195, 128, 255), //inIcoTxt, noIcoTxt,
IDB_GL_ACT, IDB_GL_DIS);
UISetting bdUI(RGB(204, 255, 255), RGB(150, 150, 150),
RGB(200, 200, 200), RGB(255, 153, 0),
RGB(255, 153, 0), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB(255, 153, 0),
IDB_BD_ACT, IDB_BD_DIS);
UISetting gaUI(RGB(255, 217, 217), RGB(150, 150, 150),
RGB(200, 200, 200), RGB( 90, 190, 45),
RGB( 90, 190, 45), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB( 90, 190, 45),
IDB_GA_ACT, IDB_GA_DIS);
UISetting giUI(RGB(255, 217, 217), RGB(150, 150, 150),
RGB(200, 200, 200), RGB( 90, 190, 45),
RGB( 90, 190, 45), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB( 90, 190, 45),
IDB_GA_ACT, IDB_GA_DIS);
UISetting bdl1UI(RGB(204, 255, 255), RGB(150, 150, 150),
RGB(200, 200, 200), RGB(255, 153, 0),
RGB(255, 153, 0), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB(255, 153, 0),
IDB_BD_ACT, IDB_BD_DIS, 17, 14);
UISetting bdl2UI(RGB(255, 217, 217), RGB(150, 150, 150),
RGB(200, 200, 200), RGB(255, 199, 114),
RGB(255, 199, 114), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB(255, 199, 114),
IDB_BD_ACT, IDB_BD_DIS, 17, 14);
UISetting gpl1UI(RGB(255, 255, 204), RGB(150, 150, 150),
RGB(200, 200, 200), RGB( 26, 144, 255),
RGB( 26, 144, 255), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128), //inTxt, noTxt
RGB(255, 255, 255), RGB( 61, 179, 255), //inIcoTxt, noIcoTxt,
IDB_GP_ACT, IDB_GP_DIS, 17, 14);
UISetting gpl2UI(RGB(255, 255, 204), RGB(150, 150, 150),
RGB(200, 200, 200), RGB(128, 194, 255),
RGB(128, 194, 255), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128), //inTxt, noTxt
RGB(255, 255, 255), RGB(128, 194, 255), //inIcoTxt, noIcoTxt,
IDB_GP_ACT, IDB_GP_DIS, 17, 14);
UISetting gll1UI(RGB(255, 255, 204), RGB(150, 150, 150),
RGB(200, 200, 200), RGB(156, 102, 204),
RGB(156, 102, 204), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB(195, 128, 255), //inIcoTxt, noIcoTxt,
IDB_GL_ACT, IDB_GL_DIS, 17, 14);
UISetting gll2UI(RGB(255, 255, 204), RGB(150, 150, 150),
RGB(200, 200, 200), RGB(156, 102, 204),
RGB(192, 159, 223), RGB(255, 255, 255),
RGB(255, 255, 255), RGB(128, 128, 128),
RGB(255, 255, 255), RGB(193, 159, 223), //inIcoTxt, noIcoTxt,
IDB_GL_ACT, IDB_GL_DIS, 17, 14);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。