ShowSignDlg.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:2k
源码类别:

交通/航空行业

开发平台:

Visual C++

  1. // ShowSignDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "GpsSC.h"
  5. #include "ShowSignDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CShowSignDlg dialog
  13. CShowSignDlg::CShowSignDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(CShowSignDlg::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CShowSignDlg)
  17. //}}AFX_DATA_INIT
  18. }
  19. void CShowSignDlg::DoDataExchange(CDataExchange* pDX)
  20. {
  21. CDialog::DoDataExchange(pDX);
  22. //{{AFX_DATA_MAP(CShowSignDlg)
  23. DDX_Control(pDX, IDC_SIGN_TRAFFIC, m_ctlSignTraffic);
  24. DDX_Control(pDX, IDC_SIGN_SHOPPING, m_ctlSignShopping);
  25. DDX_Control(pDX, IDC_SIGN_PLACENAME, m_ctlSignPlaceName);
  26. DDX_Control(pDX, IDC_SIGN_OIL, m_ctlSignOil);
  27. DDX_Control(pDX, IDC_SIGN_HOTEL, m_ctlSignHotel);
  28. DDX_Control(pDX, IDC_SIGN_HOSPITAL, m_ctlSignHospital);
  29. DDX_Control(pDX, IDC_SIGN_GOVERNMENT, m_ctlSignGoverment);
  30. DDX_Control(pDX, IDC_SIGN_COMPANY, m_ctlSignCompany);
  31. DDX_Control(pDX, IDC_SIGN_EDUCATION, m_ctlSingEducation);
  32. DDX_Control(pDX, IDC_SIGN_BUREAU, m_ctlSignBureau);
  33. DDX_Control(pDX, IDC_SIGN_BUILDING, m_ctlSignBuilding);
  34. DDX_Control(pDX, IDC_SIGN_AMUSE, m_ctlSignAmuse);
  35. //}}AFX_DATA_MAP
  36. }
  37. BEGIN_MESSAGE_MAP(CShowSignDlg, CDialog)
  38. //{{AFX_MSG_MAP(CShowSignDlg)
  39. //}}AFX_MSG_MAP
  40. END_MESSAGE_MAP()
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CShowSignDlg message handlers
  43. void CShowSignDlg::OnOK() 
  44. {
  45. // TODO: Add extra validation here
  46. if(m_ctlSignBuilding.GetCheck()) m_byBuilding = 1;
  47. if(m_ctlSignHotel.GetCheck()) m_byHotel = 2;
  48. if(m_ctlSignCompany.GetCheck()) m_byCompany = 3;
  49. if(m_ctlSignAmuse.GetCheck()) m_byAmuse = 4;
  50. if(m_ctlSignPlaceName.GetCheck()) m_byPlaceName = 5;
  51. if(m_ctlSignGoverment.GetCheck()) m_byGovern = 7;
  52. if(m_ctlSignTraffic.GetCheck()) m_byTraffic = 8;
  53. if(m_ctlSignShopping.GetCheck()) m_byShopping = 9;
  54. if(m_ctlSingEducation.GetCheck()) m_byEducation = 10;
  55. if(m_ctlSignHospital.GetCheck()) m_byHospital = 12;
  56. if(m_ctlSignBureau.GetCheck()) m_byBureau = 13;
  57. if(m_ctlSignOil.GetCheck()) m_byOil = 14;
  58. CDialog::OnOK();
  59. }