📄 page18.cpp
字号:
// page18.cpp : implementation file
//
#include "stdafx.h"
#include "cvenus.h"
#include "page18.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPage18 property page
IMPLEMENT_DYNCREATE(CPage18, CPropertyPage)
CPage18::CPage18() : CPropertyPage(CPage18::IDD)
{
//{{AFX_DATA_INIT(CPage18)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CPage18::~CPage18()
{
}
void CPage18::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPage18)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPage18, CPropertyPage)
//{{AFX_MSG_MAP(CPage18)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPage18 message handlers
BOOL CPage18::OnInitDialog()
{
CPropertyPage::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
bool CPage18::IsOK()
{
return (((CComboBox*)GetDlgItem(IDCBX_ZPD_DXL))->GetCurSel() >= 0);
}
void CPage18::InitCtrl()
{
((CComboBox*)GetDlgItem(IDCBX_ZPD_DXL))->SetCurSel(-1);
}
void CPage18::GetCtrl(CString *pStr)
{
pStr[0].Format(" %d\n", ((CComboBox*)GetDlgItem(IDCBX_ZPD_DXL))->GetCurSel() + 1);
}
void CPage18::SetCtrl(CString *pStr)
{
((CComboBox*)GetDlgItem(IDCBX_ZPD_DXL))->SetCurSel(atoi(pStr[0]) - 1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -