dlgpoint.cpp
来自「《Visual C++ 6.0实例教程》配套代码」· C++ 代码 · 共 61 行
CPP
61 行
// 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 + =
减小字号Ctrl + -
显示快捷键?