📄 start.cpp
字号:
// START.cpp : implementation file
//
#include "stdafx.h"
#include "TitleBar.h"
#include "START.h"
#include "TitleBarDlg.h"
#include "DLGFGW.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSTART dialog
CSTART::CSTART(CWnd* pParent /*=NULL*/)
: CDialog(CSTART::IDD, pParent)
{
//{{AFX_DATA_INIT(CSTART)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSTART::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSTART)
DDX_Control(pDX, IDOK, m_btnok);
DDX_Control(pDX, IDC_BTNWKZ, m_btnwkz);
DDX_Control(pDX, IDC_BTNFGW, m_btnfgw);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSTART, CDialog)
//{{AFX_MSG_MAP(CSTART)
ON_BN_CLICKED(IDC_BTNWKZ, OnBtnwkz)
ON_BN_CLICKED(IDC_BTNFGW, OnBtnfgw)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSTART message handlers
BOOL CSTART::OnInitDialog()
{
CDialog::OnInitDialog();
m_btnfgw.SubclassDlgItem(IDI_NEXT1, this);
m_btnfgw.SetIcon(IDI_NEXT2, IDI_NEXT1); // 32x32 图标
m_btnwkz.SubclassDlgItem(IDI_NEXT1, this);
m_btnwkz.SetIcon(IDI_NEXT2, IDI_NEXT1); // 32x32 图标
m_btnok.SubclassDlgItem(IDI_EXET1, this);
m_btnok.SetIcon(IDI_EXIT2, IDI_EXET1); // 32x32 图标
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CSTART::OnBtnwkz()
{
CTitleBarDlg dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
}
void CSTART::OnBtnfgw()
{
CDLGFGW dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -