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

📄 3104cview.cpp

📁 cdma无线通信转发程序 用于电力调度数据的转发
💻 CPP
字号:
// 3104CView.cpp : implementation of the CMy3104CView class
//

#include "stdafx.h"
#include "3104C.h"

#include "3104CDoc.h"
#include "CntrItem.h"
#include "3104CView.h"
#include "mydata.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMy3104CView

IMPLEMENT_DYNCREATE(CMy3104CView, CRichEditView)

BEGIN_MESSAGE_MAP(CMy3104CView, CRichEditView)
	//{{AFX_MSG_MAP(CMy3104CView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	ON_WM_DESTROY()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMy3104CView construction/destruction

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

}

CMy3104CView::~CMy3104CView()
{
}

BOOL CMy3104CView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs
    //通过修改cs来修改窗口类:
   /*	cs.lpszClass=AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW,//改变窗口时重绘
	0,//光标
	(HBRUSH)::GetStockObject(BLACK_BRUSH),//设置黑色背景
	0); //图标
	*/
	return CRichEditView::PreCreateWindow(cs);
}

void CMy3104CView::OnInitialUpdate()
{
	CRichEditView::OnInitialUpdate();

// Set the printing margins (720 twips = 1/2 inch).
	SetMargins(CRect(720, 720, 720, 720));
}

void CMy3104CView::OnDestroy()
{
	// Deactivate the item on destruction; this is important
	// when a splitter view is being used.
   CRichEditView::OnDestroy();
   COleClientItem* pActiveItem = GetDocument()->GetInPlaceActiveItem(this);
   if (pActiveItem != NULL && pActiveItem->GetActiveView() == this)
   {
      pActiveItem->Deactivate();
      ASSERT(GetDocument()->GetInPlaceActiveItem(this) == NULL);
   }
}


/////////////////////////////////////////////////////////////////////////////
// CMy3104CView diagnostics

#ifdef _DEBUG
void CMy3104CView::AssertValid() const
{
	CRichEditView::AssertValid();
}

void CMy3104CView::Dump(CDumpContext& dc) const
{
	CRichEditView::Dump(dc);
}

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

/////////////////////////////////////////////////////////////////////////////
// CMy3104CView message handlers

⌨️ 快捷键说明

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