?? nextformview.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 + -