www.pudn.com > MyVirtualCruise.rar > ExplainDlg.cpp


// ExplainDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "VirtualCruise_XiaoFangbing.h" 
#include "ExplainDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CExplainDlg dialog 
 
 
CExplainDlg::CExplainDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CExplainDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CExplainDlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CExplainDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CExplainDlg) 
		// NOTE: the ClassWizard will add DDX and DDV calls here 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CExplainDlg, CDialog) 
	//{{AFX_MSG_MAP(CExplainDlg) 
	ON_WM_CTLCOLOR() 
	ON_WM_PAINT() 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CExplainDlg message handlers 
 
HBRUSH CExplainDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)  
{ 
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); 
	 
	// TODO: Change any attributes of the DC here 
	return ::CreateSolidBrush(RGB(200,200,230)); 
	// TODO: Return a different brush if the default is not desired 
	// return hbr; 
} 
 
BOOL CExplainDlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	MoveWindow(60,70,320,200); 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
} 
 
void CExplainDlg::OnPaint()  
{ 
	CPaintDC dc(this); // device context for painting 
	 
	// TODO: Add your message handler code here 
	dc.SetBkMode(TRANSPARENT); 
	dc.SetTextColor(RGB(0,0,0)); 
	dc.TextOut(100,0,"提示"); 
	dc.TextOut(5,20,"1.用四个方向键可以控制视点前后左右移动!"); 
	dc.TextOut(5,40,"2.用小键盘数字键“4键”、“6键”"); 
	dc.TextOut(5,60,"  控制视点上下移动."); 
	// Do not call CDialog::OnPaint() for painting messages 
}