rctcolor.cpp

来自「《VC++ 编程技巧与示例 .rar》各个示例代码绝对可用」· C++ 代码 · 共 51 行

CPP
51
字号
// RCTColor.cpp : implementation file
//

#include "stdafx.h"
#include "MDTTest.h"
#include "RCTColor.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRCTColorDlg dialog


CRCTColorDlg::CRCTColorDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CRCTColorDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CRCTColorDlg)
	m_Blue = 0;
	m_Green = 0;
	m_Red = 0;
	//}}AFX_DATA_INIT
}


void CRCTColorDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRCTColorDlg)
	DDX_Text(pDX, IDC_RCT_BLUE, m_Blue);
	DDV_MinMaxUInt(pDX, m_Blue, 0, 255);
	DDX_Text(pDX, IDC_RCT_GREEN, m_Green);
	DDV_MinMaxUInt(pDX, m_Green, 0, 255);
	DDX_Text(pDX, IDC_RCT_RED, m_Red);
	DDV_MinMaxUInt(pDX, m_Red, 0, 255);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRCTColorDlg, CDialog)
	//{{AFX_MSG_MAP(CRCTColorDlg)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRCTColorDlg message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?