ComSetDlg1.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:1k
- // ComSetDlg1.cpp : implementation file
- //
- #include "stdafx.h"
- #include "GpsSC.h"
- #include "ComSetDlg1.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CComSetDlg dialog
- CComSetDlg::CComSetDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CComSetDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CComSetDlg)
- m_sBaud = _T("");
- m_sDataBits = _T("");
- m_sPort = _T("");
- m_nParity = -1;
- m_nStopBits = -1;
- //}}AFX_DATA_INIT
- }
- void CComSetDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CComSetDlg)
- DDX_CBString(pDX, IDC_BAUD, m_sBaud);
- DDX_CBString(pDX, IDC_DATABITS, m_sDataBits);
- DDX_CBString(pDX, IDC_PORT, m_sPort);
- DDX_CBIndex(pDX, IDC_PARITY, m_nParity);
- DDX_CBIndex(pDX, IDC_STOPBITS, m_nStopBits);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CComSetDlg, CDialog)
- //{{AFX_MSG_MAP(CComSetDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CComSetDlg message handlers
- BOOL CComSetDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
- m_ctrlVehcleTelNo.AddString("nihao");
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }