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

📄 twoviewview.cpp

📁 这是一个窗口分割程序,仅供大家参考,如果有什么疑问,请给我发邮件,大家一起讨论!
💻 CPP
字号:
// TwoViewView.cpp : implementation of the CTwoViewView class
//

#include "stdafx.h"
#include "TwoView.h"

#include "TwoViewDoc.h"
#include "TwoViewView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTwoViewView

IMPLEMENT_DYNCREATE(CTwoViewView, CView)

BEGIN_MESSAGE_MAP(CTwoViewView, CView)
	//{{AFX_MSG_MAP(CTwoViewView)
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTwoViewView construction/destruction

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

}

CTwoViewView::~CTwoViewView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CTwoViewView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CTwoViewView printing

BOOL CTwoViewView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CTwoViewView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CTwoViewView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CTwoViewView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CTwoViewView message handlers

int CTwoViewView::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CView::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: Add your specialized creation code here
	SetClassLong(m_hWnd,GCL_HCURSOR,(LONG)::LoadCursor(NULL,IDC_NO));
	return 0;
}

⌨️ 快捷键说明

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