DesinCheck.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // DesinCheck.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ylgl.h"
  5. #include "DesinCheck.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // DesinCheck dialog
  13. DesinCheck::DesinCheck(CWnd* pParent /*=NULL*/)
  14. : CDialog(DesinCheck::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(DesinCheck)
  17. //}}AFX_DATA_INIT
  18. }
  19. void DesinCheck::DoDataExchange(CDataExchange* pDX)
  20. {
  21. CDialog::DoDataExchange(pDX);
  22. //{{AFX_DATA_MAP(DesinCheck)
  23. DDX_Control(pDX, IDC_COMBO1, m_combo1);
  24. //}}AFX_DATA_MAP
  25. }
  26. BEGIN_MESSAGE_MAP(DesinCheck, CDialog)
  27. //{{AFX_MSG_MAP(DesinCheck)
  28. //}}AFX_MSG_MAP
  29. END_MESSAGE_MAP()
  30. /////////////////////////////////////////////////////////////////////////////
  31. // DesinCheck message handlers
  32. void DesinCheck::OnOK()
  33. {
  34. // TODO: Add extra validation here
  35. UpdateData();
  36. int pos=m_combo1.GetCurSel ();
  37. if(pos!=-1)
  38. m_combo1.GetLBText (pos, m_status8);
  39. else return;
  40. CDialog::OnOK ();
  41. }
  42. BOOL DesinCheck::OnInitDialog()
  43. {
  44. CDialog::OnInitDialog();
  45. // TODO:extra initialization here
  46. m_combo1.AddString ("OK");
  47. m_combo1.AddString ("ÐÞ¸ÄÖÐ");
  48. m_combo1.AddString ("δ¿´");
  49. if(m_status8.IsEmpty ()==0)
  50. {
  51. m_combo1.SetCurSel (m_combo1.FindString (0, m_status8));
  52. }
  53. return true; // return TRUE unless you set the focus to a control
  54. // EXCEPTION: OCX Property Pages should return FALSE
  55. }
  56. void DesinCheck::OnCancel()
  57. {
  58. // TODO: Add extra cleanup here
  59. }