nextformview.cpp

来自「一个视图分割的程序,偶学了好久了」· C++ 代码 · 共 86 行

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