⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nextformview.cpp

📁 一个视图分割的程序,偶学了好久了
💻 CPP
字号:
// NextFormView.cpp : implementation file
//

#include "stdafx.h"
#include "SwitchForm.h"
#include "NextFormView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNextFormView

IMPLEMENT_DYNCREATE(CNextFormView, CFormView)

CNextFormView::CNextFormView()
	: CFormView(CNextFormView::IDD)
{
	//{{AFX_DATA_INIT(CNextFormView)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CNextFormView::~CNextFormView()
{
}

void CNextFormView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNextFormView)
	DDX_Control(pDX, IDC_LIST2, m_List);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CNextFormView, CFormView)
	//{{AFX_MSG_MAP(CNextFormView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNextFormView diagnostics

#ifdef _DEBUG
void CNextFormView::AssertValid() const
{
	CFormView::AssertValid();
}

void CNextFormView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CNextFormView message handlers

void CNextFormView::OnInitialUpdate() 
{
	CFormView::OnInitialUpdate();
	
	// TODO: Add your specialized code here and/or call the base class
	m_List.SetExtendedStyle(LVS_EX_GRIDLINES);
	m_List.InsertColumn(0,"ddd");
	m_List.InsertColumn(1,"ccc");
	int i;
	for(i=0;i<2;i++)
	{
		m_List.SetColumnWidth(i,200);
	}
	
}

void CNextFormView::OnDraw(CDC* pDC) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -