?? myprevie.cpp
字號:
// MyPreviewView.cpp : implementation file
//
#include "stdafx.h"
#include "realev.h"
#include "MyPreviewView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyPreviewView
IMPLEMENT_DYNCREATE(CMyPreviewView, CPreviewView)
CMyPreviewView::CMyPreviewView()
{
}
CMyPreviewView::~CMyPreviewView()
{
}
BEGIN_MESSAGE_MAP(CMyPreviewView, CPreviewView)
//{{AFX_MSG_MAP(CMyPreviewView)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
ON_COMMAND(AFX_ID_PREVIEW_PRINT,OnPreviewPrint)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyPreviewView drawing
void CMyPreviewView::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
void CMyPreviewView::OnPreviewPrint()
{
::SendMessage(AfxGetApp()->m_pMainWnd->m_hWnd,ID_FILE_PRINT,0,0);
}
/////////////////////////////////////////////////////////////////////////////
// CMyPreviewView diagnostics
#ifdef _DEBUG
void CMyPreviewView::AssertValid() const
{
CPreviewView::AssertValid();
}
void CMyPreviewView::Dump(CDumpContext& dc) const
{
CPreviewView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMyPreviewView message handlers
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -