📄 cadialog.cpp
字号:
// CaDialog.cpp : implementation file
//
#include "stdafx.h"
#include "lhwy.h"
#include "CaDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCaDialog dialog
CCaDialog::CCaDialog(CWnd* pParent /*=NULL*/)
: CDialog(CCaDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CCaDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CCaDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCaDialog)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCaDialog, CDialog)
//{{AFX_MSG_MAP(CCaDialog)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCaDialog message handlers
BOOL CCaDialog::OnInitDialog()
{
CDialog::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
}
void CCaDialog::OnButton1()
{
// TODO: Add your control notification handler code here
pmyListCtrl.Create(
WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT,
CRect(0,0,800,300), this, 1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -