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

📄 dlgpoint.cpp

📁 这个是VC实例教程第7章节的第三个实例的源代码
💻 CPP
字号:
// DlgPoint.cpp : implementation file
//

#include "stdafx.h"
#include "RectTest.h"
#include "DlgPoint.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgPoint dialog


CDlgPoint::CDlgPoint(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgPoint::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgPoint)
	m_nX = 0;
	m_nY = 0;
	m_nRadio = -1;
	//}}AFX_DATA_INIT
}


void CDlgPoint::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgPoint)
	DDX_Text(pDX, IDC_EDIT_X, m_nX);
	DDV_MinMaxInt(pDX, m_nX, 0, 300);
	DDX_Text(pDX, IDC_EDIT_Y, m_nY);
	DDV_MinMaxInt(pDX, m_nY, 0, 300);
	DDX_Radio(pDX, IDC_RADIO_ADD, m_nRadio);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CDlgPoint message handlers

BOOL CDlgPoint::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 + -