mysplashview.cpp
来自「一种新颖的软件启动画面与鸣谢画面的编程实现」· C++ 代码 · 共 110 行
CPP
110 行
// MySplashView.cpp : implementation of the CMySplashView class
//
#include "stdafx.h"
#include "MySplash.h"
#include "MySplashDoc.h"
#include "MySplashView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMySplashView
IMPLEMENT_DYNCREATE(CMySplashView, CView)
BEGIN_MESSAGE_MAP(CMySplashView, CView)
//{{AFX_MSG_MAP(CMySplashView)
ON_WM_DESTROY()
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CMySplashView construction/destruction
CMySplashView::CMySplashView()
{
// TODO: add construction code here
}
CMySplashView::~CMySplashView()
{
}
BOOL CMySplashView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMySplashView drawing
void CMySplashView::OnDraw(CDC* pDC)
{
CMySplashDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMySplashView printing
BOOL CMySplashView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CMySplashView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CMySplashView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CMySplashView diagnostics
#ifdef _DEBUG
void CMySplashView::AssertValid() const
{
CView::AssertValid();
}
void CMySplashView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMySplashDoc* CMySplashView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMySplashDoc)));
return (CMySplashDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMySplashView message handlers
void CMySplashView::OnDestroy()
{
CView::OnDestroy();
dlg.DoModal();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?