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

📄 bview.cpp

📁 关于玻璃划分的小程序很不完善对这有兴趣的大家讨论讨论
💻 CPP
字号:
// BView.cpp : implementation file
//

#include "stdafx.h"
#include "玻璃划分程序.h"
#include "BView.h"

#include "玻璃划分程序Doc.h"
#include "玻璃划分程序View.h"


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

/////////////////////////////////////////////////////////////////////////////
// CBView

IMPLEMENT_DYNCREATE(CBView, CView)

CBView::CBView()
{
}

CBView::~CBView()
{
}


BEGIN_MESSAGE_MAP(CBView, CView)
	//{{AFX_MSG_MAP(CBView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBView drawing

void CBView::OnDraw(CDC* pDC)
{
	CMyDoc* pDoc = (CMyDoc*)GetDocument();
   int i=0;
   pDC->Rectangle(0,0,pDoc->m_a[i],pDoc->m_b[i]);

	// TODO: add draw code here
}

/////////////////////////////////////////////////////////////////////////////
// CBView diagnostics

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

void CBView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CBView message handlers

void CBView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	CDC* pDC=GetDC();
		CMyDoc* pDoc = (CMyDoc*)GetDocument();
   CBView::OnDraw(pDC);//调用自动重绘函数OnDraw()
   
}

⌨️ 快捷键说明

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