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

📄 property_sheetview.cpp

📁 关于使用VC编程的代码
💻 CPP
字号:
// Property_SheetView.cpp : implementation of the CProperty_SheetView class
//

#include "stdafx.h"
#include "Property_Sheet.h"

#include "Property_SheetDoc.h"
#include "Property_SheetView.h"
#include "MySheet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CProperty_SheetView

IMPLEMENT_DYNCREATE(CProperty_SheetView, CView)

BEGIN_MESSAGE_MAP(CProperty_SheetView, CView)
	//{{AFX_MSG_MAP(CProperty_SheetView)
	ON_WM_LBUTTONDBLCLK()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CProperty_SheetView construction/destruction

CProperty_SheetView::CProperty_SheetView()
{
	// TODO: add construction code here

}

CProperty_SheetView::~CProperty_SheetView()
{
}

BOOL CProperty_SheetView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CProperty_SheetView drawing

void CProperty_SheetView::OnDraw(CDC* pDC)
{
	CProperty_SheetDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CProperty_SheetView diagnostics

#ifdef _DEBUG
void CProperty_SheetView::AssertValid() const
{
	CView::AssertValid();
}

void CProperty_SheetView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CProperty_SheetDoc* CProperty_SheetView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CProperty_SheetDoc)));
	return (CProperty_SheetDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CProperty_SheetView message handlers

void CProperty_SheetView::OnLButtonDblClk(UINT nFlags, CPoint point) 
{
	CMySheet ms(IDS_SHEET_CAPTION);
	ms.DoModal();
	CView::OnLButtonDblClk(nFlags, point);
}

⌨️ 快捷键说明

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