📄 colordlg.cpp
字号:
// ColorDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Ch11Demo4.h"
#include "ColorDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CColorDlg property page
IMPLEMENT_DYNCREATE(CColorDlg, CPropertyPage)
CColorDlg::CColorDlg() : CPropertyPage(CColorDlg::IDD)
{
//{{AFX_DATA_INIT(CColorDlg)
m_red = 0;
m_green = 0;
m_blue = 0;
//}}AFX_DATA_INIT
}
CColorDlg::~CColorDlg()
{
}
void CColorDlg::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CColorDlg)
DDX_Text(pDX, IDC_EDIT1, m_red);
DDV_MinMaxInt(pDX, m_red, 0, 255);
DDX_Text(pDX, IDC_EDIT2, m_green);
DDV_MinMaxInt(pDX, m_green, 0, 255);
DDX_Text(pDX, IDC_EDIT3, m_blue);
DDV_MinMaxInt(pDX, m_blue, 0, 255);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CColorDlg, CPropertyPage)
//{{AFX_MSG_MAP(CColorDlg)
ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CColorDlg message handlers
void CColorDlg::OnChangeEdit1()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CPropertyPage::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
// SetModified(true);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -