📄 pcm120view.cpp
字号:
// PCM120View.cpp : implementation of the CPCM120View class
//
#include "stdafx.h"
#include "PCM120.h"
#include "PCM120Doc.h"
#include "PCM120View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPCM120View
IMPLEMENT_DYNCREATE(CPCM120View, CView)
BEGIN_MESSAGE_MAP(CPCM120View, CView)
//{{AFX_MSG_MAP(CPCM120View)
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CPCM120View construction/destruction
CPCM120View::CPCM120View()
{
// TODO: add construction code here
}
CPCM120View::~CPCM120View()
{
}
BOOL CPCM120View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style &=~(WS_MAXIMIZEBOX|WS_MINIMIZEBOX); //去掉最小化和最大化按钮
cs.style &=~WS_THICKFRAME; //使窗口大小固定
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CPCM120View drawing
void CPCM120View::OnDraw(CDC* pDC)
{
CPCM120Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CPCM120View printing
BOOL CPCM120View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CPCM120View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CPCM120View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CPCM120View diagnostics
#ifdef _DEBUG
void CPCM120View::AssertValid() const
{
CView::AssertValid();
}
void CPCM120View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CPCM120Doc* CPCM120View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPCM120Doc)));
return (CPCM120Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CPCM120View message handlers
void CPCM120View::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CView::OnLButtonDown(nFlags, point);
}
void CPCM120View::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CView::OnLButtonUp(nFlags, point);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -