📄 manage.cpp
字号:
// Manage.cpp : implementation file
//
#include "stdafx.h"
#include "SetWin.h"
#include "Manage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Manage dialog
Manage::Manage(CWnd* pParent /*=NULL*/)
: CDialog(Manage::IDD, pParent)
{
//{{AFX_DATA_INIT(Manage)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void Manage::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Manage)
// NOTE: the ClassWizard will add DDX and DDV calls here
DDX_Control(pDX,IDC_Title,m_Title);
DDX_Control(pDX,IDC_Tit1,m_Tit1);
DDX_Control(pDX,IDC_Tit2,m_Tit2);
DDX_Control(pDX,IDC_Man1,m_Man1);
DDX_Control(pDX,IDC_Man2,m_Man2);
DDX_Control(pDX,IDC_Title2,m_Title2);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Manage, CDialog)
//{{AFX_MSG_MAP(Manage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Manage message handlers
BOOL Manage::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
COLORREF crBtnColor;
crBtnColor = ::GetSysColor(COLOR_BTNFACE) + RGB(30, 30, 30);
CFont m_Tabfont,m_TabFont;
m_Tabfont.CreateFont(10, 0, 0, 0, FW_NORMAL, 0, 0, 0,
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY,
VARIABLE_PITCH | 0x04 | FF_DONTCARE,
"宋体 ");
m_TabFont.CreateFont(9, 0, 0, 0, FW_NORMAL, 0, 0, 0,
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY,
VARIABLE_PITCH | 0x04 | FF_DONTCARE,
"宋体 ");
CWnd *hWnd;
hWnd=GetDlgItem(IDD_SETWIN_DIALOG);
this->IsChild(hWnd);//设置为setwin的子窗体
m_Title.SetBkColor(::GetSysColor(4));//common背景容器
m_Title.SetRoundRectRgn(10,10);
// m_comsta1.SetBitmap(IDB_BITMAP1,RGB(255,0,0));
m_Title.SetBorder(::GetSysColor(10));
m_Title.MoveWindow(0,0,372,340);
m_Man1.SetBkColor(::GetSysColor(4));//容器1
m_Man1.SetRoundRectRgn(10,10);
m_Man1.SetBorder(::GetSysColor(10));
m_Man1.MoveWindow(10,35,352,120);
m_Man2.SetBkColor(::GetSysColor(4));//容器2
m_Man2.SetRoundRectRgn(10,10);
m_Man2.SetBorder(::GetSysColor(10));
m_Man2.MoveWindow(10,165,352,150);
m_Tit1.SetBkColor(::GetSysColor(4));//容器1标题
//m_Tit1.SetRoundRectRgn(10,10);
m_Tit1.MoveWindow(25,31,85,15);
m_Tit1.SetWindowText("网络状态管理");
m_Tit1.SetFont(&m_TabFont);
m_Tit2.SetBkColor(::GetSysColor(4));//容器2标题
// m_Tit2.SetRoundRectRgn(10,10);
m_Tit2.MoveWindow(25,161,95,15);
m_Tit2.SetWindowText("强制关闭保险箱");
m_Tit2.SetFont(&m_TabFont);
m_Title2.SetThemeHelper(&m_Theme);//顶端按钮
m_Title2.SetIcon(IDI_ICON1, IDI_ICON1);//(IDB_Comadmin,RGB(0, 255, 0));
m_Title2.SetWindowText("保险箱管理 ");
// m_common.SetFont(&m_TabFont);
m_Title2.SetColor(CButtonST::BTNST_COLOR_BK_IN, crBtnColor);
m_Title2.SetTooltipText(_T("管理设置"));
m_Title2.MoveWindow(0,0,372,25);
/* m_combtn.SetRoundRectRgn(10,10);
//m_com.SetMargins(0, 16);
m_combtn.SetWindowText("常规设置");
m_combtn.SetBitmap(IDB_BITMAP1,RGB(255,0,0));
m_combtn.SetBorder(::GetSysColor(4));
m_combtn.MoveWindow(1,1,420,30);*/
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -