📄 mysci2view.cpp
字号:
// MySci2View.cpp : implementation of the CMySci2View class
//
#include "stdafx.h"
#include "MySci2.h"
#include "MySci2Doc.h"
#include "MySci2View.h"
#include "ComDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMySci2View
IMPLEMENT_DYNCREATE(CMySci2View, CView)
BEGIN_MESSAGE_MAP(CMySci2View, CView)
//{{AFX_MSG_MAP(CMySci2View)
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMySci2View construction/destruction
CMySci2View::CMySci2View()
{
// TODO: add construction code here
}
CMySci2View::~CMySci2View()
{
}
BOOL CMySci2View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMySci2View drawing
void CMySci2View::OnDraw(CDC* pDC)
{
CMySci2Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMySci2View diagnostics
#ifdef _DEBUG
void CMySci2View::AssertValid() const
{
CView::AssertValid();
}
void CMySci2View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMySci2Doc* CMySci2View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMySci2Doc)));
return (CMySci2Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMySci2View message handlers
void CMySci2View::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CComDlg dlg;
dlg.DoModal();
CView::OnLButtonDown(nFlags, point);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -