📄 leftview.cpp
字号:
// LeftView.cpp : CLeftView 类的实现
//
#include "stdafx.h"
#include "Ex29b.h"
#include "Ex29bDoc.h"
#include "LeftView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CLeftView
IMPLEMENT_DYNCREATE(CLeftView, CListView)
BEGIN_MESSAGE_MAP(CLeftView, CListView)
END_MESSAGE_MAP()
// CLeftView 构造/析构
CLeftView::CLeftView()
{
// TODO: 在此处添加构造代码
}
CLeftView::~CLeftView()
{
}
BOOL CLeftView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或样式
cs.style |= LVS_LIST;
return CListView::PreCreateWindow(cs);
}
void CLeftView::OnInitialUpdate()
{
CListView::OnInitialUpdate();
// TODO: 调用 GetTreeCtrl() 直接访问 TreeView 的树控件,
// 从而可以用项填充 TreeView。
}
// CLeftView 诊断
#ifdef _DEBUG
void CLeftView::AssertValid() const
{
CListView::AssertValid();
}
void CLeftView::Dump(CDumpContext& dc) const
{
CListView::Dump(dc);
}
CEx29bDoc* CLeftView::GetDocument() // 非调试版本是内联的
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEx29bDoc)));
return (CEx29bDoc*)m_pDocument;
}
#endif //_DEBUG
// CLeftView 消息处理程序
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -