1 Star 1 Fork 2

今夜无眠/GNSS_Viewer_V2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
UISetting.cpp 5.43 KB
一键复制 编辑 原始数据 按行查看 历史
Alex Lin 提交于 2018-07-18 16:21 . 2.0.326
#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);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/null_130_5865/GNSS_Viewer_V2.git
[email protected]:null_130_5865/GNSS_Viewer_V2.git
null_130_5865
GNSS_Viewer_V2
GNSS_Viewer_V2
master

搜索帮助