⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 powersetview.cpp

📁 改程序实现了登陆管理。用户设置有ADMIN和普通用户两种。是用户管理很使用的程序。
💻 CPP
字号:
// PowerSetView.cpp : implementation of the CPowerSetView class
//

#include "stdafx.h"
#include "PowerSet.h"

#include "PowerSetDoc.h"
#include "PowerSetView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPowerSetView

IMPLEMENT_DYNCREATE(CPowerSetView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CPowerSetView construction/destruction

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

}

CPowerSetView::~CPowerSetView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CPowerSetView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CPowerSetView printing

BOOL CPowerSetView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CPowerSetView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CPowerSetView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CPowerSetView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CPowerSetView message handlers

⌨️ 快捷键说明

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