// ComSet.cpp : implementation file // #include "stdafx.h" #include "GoGo.h" #include "ComSet.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CComSet dialog CComSet::CComSet(CWnd* pParent /*=NULL*/) : CDialog(CComSet::IDD, pParent) { //{{AFX_DATA_INIT(CComSet) m_baud = _T("115200"); m_databit = _T("8"); m_parity = _T("None"); m_stopbit = _T("1"); //}}AFX_DATA_INIT } void CComSet::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CComSet) DDX_Text(pDX, IDC_E_BAUD, m_baud); DDX_CBString(pDX, IDC_CB_DATABIT, m_databit); DDX_CBString(pDX, IDC_CB_PARITY, m_parity); DDX_CBString(pDX, IDC_CB_STOPBIT, m_stopbit); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CComSet, CDialog) //{{AFX_MSG_MAP(CComSet) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CComSet message handlers BOOL CComSet::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here m_baud="115200"; return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }