📄 cguitestview.cpp
字号:
// cguitestView.cpp : implementation of the CCguitestView class
//
#include "stdafx.h"
#include "cguitest.h"
#include "cguitestDoc.h"
#include "cguitestView.h"
#include "Guilib.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCguitestView
IMPLEMENT_DYNCREATE(CCguitestView, CView)
BEGIN_MESSAGE_MAP(CCguitestView, CView)
//{{AFX_MSG_MAP(CCguitestView)
ON_WM_KEYDOWN()
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CCguitestView construction/destruction
CCguitestView::CCguitestView()
{
// TODO: add construction code here
}
CCguitestView::~CCguitestView()
{
}
BOOL CCguitestView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCguitestView drawing
void CCguitestView::OnDraw(CDC* pDC)
{
CCguitestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
//for(int i=0; i<500; i++)
main();
}
/////////////////////////////////////////////////////////////////////////////
// CCguitestView printing
BOOL CCguitestView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCguitestView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCguitestView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCguitestView diagnostics
#ifdef _DEBUG
void CCguitestView::AssertValid() const
{
CView::AssertValid();
}
void CCguitestView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCguitestDoc* CCguitestView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCguitestDoc)));
return (CCguitestDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCguitestView message handlers
void CCguitestView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
// main(nChar);
// sendKeyMssg(nChar);
CView::OnKeyDown(nChar, nRepCnt, nFlags);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -