📄 upasschange.cpp
字号:
// upasschange.cpp : implementation file
//
#include "stdafx.h"
#include "System.h"
#include "upasschange.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// upasschange dialog
upasschange::upasschange(CWnd* pParent /*=NULL*/)
: CDialog(upasschange::IDD, pParent)
{
//{{AFX_DATA_INIT(upasschange)
m_ucname = _T("");
m_ucnpass = _T("");
m_ucnpassd = _T("");
m_ucopass = _T("");
m_ucsno = _T("");
//}}AFX_DATA_INIT
}
void upasschange::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(upasschange)
DDX_Text(pDX, IDC_UCNAME, m_ucname);
DDX_Text(pDX, IDC_UCNPASS, m_ucnpass);
DDX_Text(pDX, IDC_UCNPASSD, m_ucnpassd);
DDX_Text(pDX, IDC_UCOPASS, m_ucopass);
DDX_Text(pDX, IDC_UCSNO, m_ucsno);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(upasschange, CDialog)
//{{AFX_MSG_MAP(upasschange)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// upasschange message handlers
void upasschange::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 + -