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

📄 adduser.cpp

📁 计算机管理系统可以实现开机时自动运行
💻 CPP
字号:
// adduser.cpp : implementation file
//

#include "stdafx.h"
#include "System.h"
#include "adduser.h"

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

/////////////////////////////////////////////////////////////////////////////
// adduser dialog


adduser::adduser(CWnd* pParent /*=NULL*/)
	: CDialog(adduser::IDD, pParent)
{
	//{{AFX_DATA_INIT(adduser)
	m_addname = _T("");
	m_addpassword = _T("");
	m_addsno = _T("");
	//}}AFX_DATA_INIT
}


void adduser::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(adduser)
	DDX_Text(pDX, IDC_ADDNAME, m_addname);
	DDX_Text(pDX, IDC_ADDPASSWORD, m_addpassword);
	DDX_Text(pDX, IDC_ADDSNO, m_addsno);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(adduser, CDialog)
	//{{AFX_MSG_MAP(adduser)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// adduser message handlers

void adduser::OnOK() 
{
    UpdateData(true);
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

void adduser::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	CBitmap bmp;
	bmp.LoadBitmap(IDB_BITMAP2);// Get the size of the bitmap
	BITMAP bmpInfo;
	bmp.GetBitmap(&bmpInfo);
	// Create an in-memory DC compatible with the
	// display DC we're using to paint
	CDC dcMemory;
	dcMemory.CreateCompatibleDC(&dc);
	// Select the bitmap into the in-memory DC
	CBitmap *pOldBmp=dcMemory.SelectObject(&bmp);
	// Copy the bits from the in-memory DC into the on-	// screen DC to actually do the painting
     dc.BitBlt(0, 0, bmpInfo.bmWidth, bmpInfo.bmHeight, &dcMemory, 0, 0, SRCCOPY);
	// TODO: Add your message handler code here
	
	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

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