nstab2.cpp

来自「自己写的VC」· C++ 代码 · 共 66 行

CPP
66
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?