www.pudn.com > Gh0st.rar > MessageDlg.cpp, change:2011-02-10,size:1720b


// MessageDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "client.h" 
#include "MessageDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CMessageDlg dialog 
 
 
CMessageDlg::CMessageDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CMessageDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CMessageDlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CMessageDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CMessageDlg) 
	DDX_Control(pDX, IDC_COMBO2, m_btn_type); 
	DDX_Control(pDX, IDC_COMBO1, m_ico_type); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CMessageDlg, CDialog) 
	//{{AFX_MSG_MAP(CMessageDlg) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CMessageDlg message handlers 
 
BOOL CMessageDlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	m_ico_type.InsertString(0,"普通"); 
	m_ico_type.InsertString(1,"询问"); 
	m_ico_type.InsertString(2,"警告"); 
	m_ico_type.InsertString(3,"错误"); 
	m_ico_type.SetCurSel(0); 
  
	m_btn_type.InsertString(0,"确定"); 
    m_btn_type.InsertString(1,"确定、取消"); 
	m_btn_type.InsertString(2,"是、否"); 
	m_btn_type.InsertString(3,"是、否、取消"); 
	m_btn_type.InsertString(4,"重试、取消"); 
	m_btn_type.InsertString(5,"终止、重试、取消"); 
	m_btn_type.SetCurSel(0); 
 
 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}