【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了ComsetDlg.cpp提供大家参考,希望对大家有所帮助!
// ComsetDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Ex16_3.h"
#include "ComsetDlg.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_nPort = 0;
m_nBaud = 3;
m_nDataBit = 1;
m_nStopBit = 0;
m_nCheck = 0;
//}}AFX_DATA_INIT
}
void CComsetDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CComsetDlg)
DDX_CBIndex(pDX, IDC_COMBO_COM, m_nPort);
DDX_CBIndex(pDX, IDC_COMBO_BAUD, m_nBaud);
DDX_CBIndex(pDX, IDC_COMBO_DATABIT, m_nDataBit);
DDX_CBIndex(pDX, IDC_COMBO_STOPBIT, m_nStopBit);
DDX_CBIndex(pDX, IDC_COMBO_CHECK, m_nCheck);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CComsetDlg, CDialog)
//{{AFX_MSG_MAP(CComsetDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CComsetDlg message handlers
上一篇:
comserver.cpp
下一篇:
村落共同体的核心架构研究