warning.cpp

来自「基于WINCE」· C++ 代码 · 共 58 行

CPP
58
字号
// Warning.cpp : implementation file
//

#include "stdafx.h"
#include "Msg.h"
#include "Warning.h"

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

/////////////////////////////////////////////////////////////////////////////
// CWarning dialog


CWarning::CWarning(CWnd* pParent /*=NULL*/)
	: CDialog(CWarning::IDD, pParent)
{
	//{{AFX_DATA_INIT(CWarning)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	DELETEOK.LoadBitmaps(IDB_DELETEOK);
	DELETECANCEL.LoadBitmaps(IDB_DELETECANCEL);
}


void CWarning::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CWarning)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CWarning, CDialog)
	//{{AFX_MSG_MAP(CWarning)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CWarning message handlers

BOOL CWarning::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	VERIFY(DELETEOK.SubclassDlgItem(IDOK,this));
	DELETEOK.SizeToContent();
	VERIFY(DELETECANCEL.SubclassDlgItem(IDCANCEL,this));
	DELETECANCEL.SizeToContent();
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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