www.gusucode.com > 串口通讯,用控件做的,可以做串口调试 > 串口通讯,用控件做的,可以做串口调试/ex7/setting.cpp
// setting.cpp : implementation file // #include "stdafx.h" #include "ex7.h" #include "setting.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // Csetting dialog Csetting::Csetting(CWnd* pParent /*=NULL*/) : CDialog(Csetting::IDD, pParent) { //{{AFX_DATA_INIT(Csetting) m_ncom = _T(""); m_ncomset = _T(""); //}}AFX_DATA_INIT } void Csetting::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(Csetting) DDX_Text(pDX, IDC_EDIT1, m_ncom); DDX_Text(pDX, IDC_EDIT2, m_ncomset); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(Csetting, CDialog) //{{AFX_MSG_MAP(Csetting) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // Csetting message handlers