📄 cdlg.cpp
字号:
// CDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Chapter06.h"
#include "CDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCDlg dialog
CCDlg::CCDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CCDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CCDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCDlg, CDialog)
//{{AFX_MSG_MAP(CCDlg)
ON_COMMAND(ID_CMD, OnCmd)
//}}AFX_MSG_MAP
ON_MESSAGE(WM_CUSTOMIZE,Customize)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCDlg message handlers
void CCDlg::OnCmd()
{
// TODO: Add your command handler code here
SetWindowText("重载OnCmdMsg后,改变的窗口标题:)");
}
void CCDlg::Customize(WPARAM wParam, LPARAM lParam)
{
CString strTittle;
strTittle.Format("自定义消息参数:x=%d,y=%d",wParam,lParam);
SetWindowText(strTittle);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -