📄 testmutex1_1view.cpp
字号:
// testMutex1_1View.cpp : implementation of the CTestMutex1_1View class
//
#include "stdafx.h"
#include "testMutex1_1.h"
#include "testMutex1_1Doc.h"
#include "testMutex1_1View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTestMutex1_1View
IMPLEMENT_DYNCREATE(CTestMutex1_1View, CView)
BEGIN_MESSAGE_MAP(CTestMutex1_1View, CView)
//{{AFX_MSG_MAP(CTestMutex1_1View)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CTestMutex1_1View construction/destruction
CTestMutex1_1View::CTestMutex1_1View()
{
// TODO: add construction code here
}
CTestMutex1_1View::~CTestMutex1_1View()
{
}
BOOL CTestMutex1_1View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CTestMutex1_1View drawing
void CTestMutex1_1View::OnDraw(CDC* pDC)
{
CTestMutex1_1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CTestMutex1_1View printing
BOOL CTestMutex1_1View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CTestMutex1_1View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CTestMutex1_1View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CTestMutex1_1View diagnostics
#ifdef _DEBUG
void CTestMutex1_1View::AssertValid() const
{
CView::AssertValid();
}
void CTestMutex1_1View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CTestMutex1_1Doc* CTestMutex1_1View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTestMutex1_1Doc)));
return (CTestMutex1_1Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CTestMutex1_1View message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -