📄 settingdialog.cpp
字号:
// SettingDialog.cpp : implementation file
//
#include "stdafx.h"
#include "bmpDemo.h"
#include "SettingDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// SettingDialog dialog
SettingDialog::SettingDialog(CWnd* pParent /*=NULL*/)
: CDialog(SettingDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(SettingDialog)
//}}AFX_DATA_INIT
}
void SettingDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(SettingDialog)
DDX_Control(pDX, IDC_CHECK2, m_ViewEditTool);
DDX_Control(pDX, IDC_CHECK1, m_ViewToolBar1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(SettingDialog, CDialog)
//{{AFX_MSG_MAP(SettingDialog)
ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
ON_WM_PAINT()
ON_BN_CLICKED(IDC_CHECK2, OnCheck2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// SettingDialog message handlers
void SettingDialog::OnCheck1()
{
// TODO: Add your control notification handler code here
CBmpDemoApp *app=(CBmpDemoApp *)AfxGetApp();
app->m_ViewToolBar1=m_ViewToolBar1.GetCheck();
}
void SettingDialog::OnCheck2()
{
// TODO: Add your control notification handler code here
CBmpDemoApp *app=(CBmpDemoApp *)AfxGetApp();
// app->m_ViewEditTool=m_ViewEditTool.GetCheck();
}
void SettingDialog::OnPaint()
{
CPaintDC dc(this); // device context for painting
CBmpDemoApp *app=(CBmpDemoApp *)AfxGetApp();
m_ViewToolBar1.SetCheck(app->m_ViewToolBar1);
m_ViewEditTool.SetCheck(app->m_ViewEditTool);
//控制图象工具栏是否选中
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -