ShowSignDlg.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:2k
- // ShowSignDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "GpsSC.h"
- #include "ShowSignDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CShowSignDlg dialog
- CShowSignDlg::CShowSignDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CShowSignDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CShowSignDlg)
- //}}AFX_DATA_INIT
- }
- void CShowSignDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CShowSignDlg)
- DDX_Control(pDX, IDC_SIGN_TRAFFIC, m_ctlSignTraffic);
- DDX_Control(pDX, IDC_SIGN_SHOPPING, m_ctlSignShopping);
- DDX_Control(pDX, IDC_SIGN_PLACENAME, m_ctlSignPlaceName);
- DDX_Control(pDX, IDC_SIGN_OIL, m_ctlSignOil);
- DDX_Control(pDX, IDC_SIGN_HOTEL, m_ctlSignHotel);
- DDX_Control(pDX, IDC_SIGN_HOSPITAL, m_ctlSignHospital);
- DDX_Control(pDX, IDC_SIGN_GOVERNMENT, m_ctlSignGoverment);
- DDX_Control(pDX, IDC_SIGN_COMPANY, m_ctlSignCompany);
- DDX_Control(pDX, IDC_SIGN_EDUCATION, m_ctlSingEducation);
- DDX_Control(pDX, IDC_SIGN_BUREAU, m_ctlSignBureau);
- DDX_Control(pDX, IDC_SIGN_BUILDING, m_ctlSignBuilding);
- DDX_Control(pDX, IDC_SIGN_AMUSE, m_ctlSignAmuse);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CShowSignDlg, CDialog)
- //{{AFX_MSG_MAP(CShowSignDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CShowSignDlg message handlers
- void CShowSignDlg::OnOK()
- {
- // TODO: Add extra validation here
- if(m_ctlSignBuilding.GetCheck()) m_byBuilding = 1;
- if(m_ctlSignHotel.GetCheck()) m_byHotel = 2;
- if(m_ctlSignCompany.GetCheck()) m_byCompany = 3;
- if(m_ctlSignAmuse.GetCheck()) m_byAmuse = 4;
- if(m_ctlSignPlaceName.GetCheck()) m_byPlaceName = 5;
- if(m_ctlSignGoverment.GetCheck()) m_byGovern = 7;
- if(m_ctlSignTraffic.GetCheck()) m_byTraffic = 8;
- if(m_ctlSignShopping.GetCheck()) m_byShopping = 9;
- if(m_ctlSingEducation.GetCheck()) m_byEducation = 10;
- if(m_ctlSignHospital.GetCheck()) m_byHospital = 12;
- if(m_ctlSignBureau.GetCheck()) m_byBureau = 13;
- if(m_ctlSignOil.GetCheck()) m_byOil = 14;
- CDialog::OnOK();
- }