// DesinCheck.cpp : implementation file // #include "stdafx.h" #include "ylgl.h" #include "DesinCheck.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // DesinCheck dialog DesinCheck::DesinCheck(CWnd* pParent /*=NULL*/) : CDialog(DesinCheck::IDD, pParent) { //{{AFX_DATA_INIT(DesinCheck) //}}AFX_DATA_INIT } void DesinCheck::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(DesinCheck) DDX_Control(pDX, IDC_COMBO1, m_combo1); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(DesinCheck, CDialog) //{{AFX_MSG_MAP(DesinCheck) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // DesinCheck message handlers void DesinCheck::OnOK() { // TODO: Add extra validation here UpdateData(); int pos=m_combo1.GetCurSel (); if(pos!=-1) m_combo1.GetLBText (pos, m_status8); else return; CDialog::OnOK (); } BOOL DesinCheck::OnInitDialog() { CDialog::OnInitDialog(); // TODO:extra initialization here m_combo1.AddString ("OK"); m_combo1.AddString ("ÐÞ¸ÄÖÐ"); m_combo1.AddString ("δ¿´"); if(m_status8.IsEmpty ()==0) { m_combo1.SetCurSel (m_combo1.FindString (0, m_status8)); } return true; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void DesinCheck::OnCancel() { // TODO: Add extra cleanup here }