?? dlg.cpp
字號:
// Dlg.cpp : implementation file
//
#include "stdafx.h"
#include "huayuan.h"
#include "Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlg dialog
CDlg::CDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlg)
m_x = 0;
m_y = 0;
m_r = 0;
//}}AFX_DATA_INIT
}
void CDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlg)
DDX_Text(pDX, IDC_EDIT1, m_x);
DDX_Text(pDX, IDC_EDIT2, m_y);
DDX_Text(pDX, IDC_EDIT3, m_r);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlg, CDialog)
//{{AFX_MSG_MAP(CDlg)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlg message handlers
void CDlg::OnButton2()
{
// TODO: Add your control notification handler code here
CColorDialog dlg1;
if(dlg1.DoModal()==IDOK)
ncolor=dlg1.GetColor();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -