passwordview.cpp

来自「这个是我们学校用的VC++教案」· C++ 代码 · 共 82 行

CPP
82
字号
// PasswordView.cpp : implementation of the CPasswordView class
//

#include "stdafx.h"
#include "Password.h"

#include "PasswordDoc.h"
#include "PasswordView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPasswordView

IMPLEMENT_DYNCREATE(CPasswordView, CView)

BEGIN_MESSAGE_MAP(CPasswordView, CView)
	//{{AFX_MSG_MAP(CPasswordView)
		// 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
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPasswordView construction/destruction

CPasswordView::CPasswordView()
{
	// TODO: add construction code here

}

CPasswordView::~CPasswordView()
{
}

BOOL CPasswordView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CPasswordView drawing

void CPasswordView::OnDraw(CDC* pDC)
{
	CPasswordDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CPasswordView diagnostics

#ifdef _DEBUG
void CPasswordView::AssertValid() const
{
	CView::AssertValid();
}

void CPasswordView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CPasswordDoc* CPasswordView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPasswordDoc)));
	return (CPasswordDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CPasswordView message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?