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

📄 adpass.cpp

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

#include "stdafx.h"
#include "System.h"
#include "adpass.h"

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

/////////////////////////////////////////////////////////////////////////////
// adpass dialog


adpass::adpass(CWnd* pParent /*=NULL*/)
	: CDialog(adpass::IDD, pParent)
{
	//{{AFX_DATA_INIT(adpass)
	m_adpassnum = _T("");
	//}}AFX_DATA_INIT
}


void adpass::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(adpass)
	DDX_Text(pDX, IDC_ADPASSNUM, m_adpassnum);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// adpass message handlers

void adpass::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);

//	if(!m_bStretch.GetCheck())
//	{
		// 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 + -