// Step1.cpp : implementation file // #include "stdafx.h" #include "romdump.h" #include "Step1.h" #include "Serial.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CStep1 dialog CStep1::CStep1(CWnd* pParent /*=NULL*/) : CDialog(CStep1::IDD, pParent) { //{{AFX_DATA_INIT(CStep1) m_Port = 0; //}}AFX_DATA_INIT } void CStep1::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CStep1) DDX_Radio(pDX, IDC_PORT1, m_Port); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CStep1, CDialog) //{{AFX_MSG_MAP(CStep1) ON_BN_CLICKED(IDC_PORT1, OnPort1) ON_BN_CLICKED(IDC_PORT2, OnPort2) ON_BN_CLICKED(IDC_PORT3, OnPort3) ON_BN_CLICKED(IDC_PORT4, OnPort4) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CStep1 message handlers void CStep1::OnOK() { Port = m_Port + 1; CDialog::OnOK(); } void CStep1::OnPort1() {m_Port = 0;} void CStep1::OnPort2() {m_Port = 1;} void CStep1::OnPort3() {m_Port = 2;} void CStep1::OnPort4() {m_Port = 3;}