📄 nstab2.cpp
字号:
// nstab2.cpp : implementation file
//
#include "stdafx.h"
#include "Tab.h"
#include "nstab2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Cnstab2 dialog
Cnstab2::Cnstab2(CWnd* pParent /*=NULL*/)
: CDialog(Cnstab2::IDD, pParent)
{
//{{AFX_DATA_INIT(Cnstab2)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void Cnstab2::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cnstab2)
DDX_Control(pDX, IDC_LIST2, m_ListBox2);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Cnstab2, CDialog)
//{{AFX_MSG_MAP(Cnstab2)
ON_WM_SIZE()
ON_WM_CANCELMODE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Cnstab2 message handlers
void Cnstab2::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
if(m_ListBox2.GetSafeHwnd())
{
CRect t_Rect;
GetClientRect(&t_Rect);
m_ListBox2.MoveWindow(t_Rect);
}
// TODO: Add your message handler code here
}
void Cnstab2::OnCancelMode()
{
CDialog::OnCancelMode();
// TODO: Add your message handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -