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

📄 screenfontview.cpp

📁 本压缩软件为《Visual C++6.0基础教程》(黑魔方系列)一书的源代码
💻 CPP
字号:
// ScreenFontView.cpp : implementation of the CScreenFontView class
//

#include "stdafx.h"
#include "ScreenFont.h"
#include "ScreenFontDoc.h"
#include "ScreenFontView.h"
#include "ShowDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CScreenFontView

IMPLEMENT_DYNCREATE(CScreenFontView, CView)

BEGIN_MESSAGE_MAP(CScreenFontView, CView)
	//{{AFX_MSG_MAP(CScreenFontView)
	ON_COMMAND(IDC_SHOW, OnShow)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CScreenFontView construction/destruction

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

}

CScreenFontView::~CScreenFontView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CScreenFontView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CScreenFontView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CScreenFontView message handlers

void CScreenFontView::OnShow() 
{
	// TODO: Add your command handler code here
	CShowDlg Dlg;
	Dlg.DoModal();
}

⌨️ 快捷键说明

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