⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlgrect.cpp

📁 《Visual C++ 6.0实例教程》配套代码
💻 CPP
字号:
// DlgRect.cpp : implementation file
//

#include "stdafx.h"
#include "RectTest.h"
#include "DlgRect.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgRect dialog


CDlgRect::CDlgRect(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgRect::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgRect)
	m_nLeft = 0;
	m_nTop = 0;
	m_nRight = 0;
	m_nBottom = 0;
	m_nRadio = -1;
	//}}AFX_DATA_INIT
}


void CDlgRect::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgRect)
	DDX_Text(pDX, IDC_EDIT_LEFT, m_nLeft);
	DDV_MinMaxInt(pDX, m_nLeft, 0, 300);
	DDX_Text(pDX, IDC_EDIT_TOP, m_nTop);
	DDV_MinMaxInt(pDX, m_nTop, 0, 300);
	DDX_Text(pDX, IDC_EDIT_RIGHT, m_nRight);
	DDV_MinMaxInt(pDX, m_nRight, 0, 300);
	DDX_Text(pDX, IDC_EDIT_BOTTOM, m_nBottom);
	DDV_MinMaxInt(pDX, m_nBottom, 0, 300);
	DDX_Radio(pDX, IDC_RADIO_ADD, m_nRadio);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgRect, CDialog)
	//{{AFX_MSG_MAP(CDlgRect)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgRect message handlers

BOOL CDlgRect::OnInitDialog() 
{
	CDialog::OnInitDialog();
	// TODO: Add extra initialization here
	m_nRadio = 0;
	UpdateData(false);
	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 + -