static   nbox;IoPc::IoPc(CWnd* pParent /*=NULL*/)//IO PAGE CHECK
: CDialog(IoPc::IDD, pParent)
{
//{{AFX_DATA_INIT(IoPc)
//}}AFX_DATA_INIT
}
void IoPc::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(IoPc)
DDX_Control(pDX, IDC_BOX, m_box);
DDX_Control(pDX, IDC_OUTBAR, m_outbar);
DDX_Control(pDX, IDC_INBAR, m_inbar);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(IoPc, CDialog)
//{{AFX_MSG_MAP(IoPc)
ON_BN_CLICKED(IDEXIT, OnExit)
ON_WM_SHOWWINDOW()
ON_WM_TIMER()
ON_WM_VSCROLL()
ON_BN_CLICKED(IDC_OUT1, OnOut1)
ON_BN_CLICKED(IDC_OUT2, OnOut2)
ON_BN_CLICKED(IDC_OUT3, OnOut3)
ON_BN_CLICKED(IDC_OUT4, OnOut4)
ON_BN_CLICKED(IDC_OUT5, OnOut5)
ON_BN_CLICKED(IDC_OUT6, OnOut6)
ON_BN_CLICKED(IDC_OUT7, OnOut7)
ON_BN_CLICKED(IDC_OUT8, OnOut8)
ON_BN_CLICKED(IDC_OUT9, OnOut9)
ON_BN_CLICKED(IDC_OUT10, OnOut10)
ON_BN_CLICKED(IDC_OUT11, OnOut11)
ON_BN_CLICKED(IDC_OUT12, OnOut12)
ON_BN_CLICKED(IDC_OUT13, OnOut13)
ON_BN_CLICKED(IDC_OUT14, OnOut14)
ON_BN_CLICKED(IDC_OUT15, OnOut15)
ON_BN_CLICKED(IDC_OUT16, OnOut16)
ON_CBN_SELCHANGE(IDC_BOX, OnSelchangeBox)
ON_BN_CLICKED(IDRESTART, OnRestart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////
// IoPc message handlersvoid IoPc::OnExit() 
{
// TODO: Add your control notification handler code here
EndDialog(0);
}void IoPc::OnShowWindow(BOOL bShow, UINT nStatus) 
{
CDialog::OnShowWindow(bShow, nStatus);

// TODO: Add your message handler code here   m_box.ResetContent();
   m_box.AddString("Input/Output BOX0");
   m_box.AddString("Input/Output BOX1");
   m_box.AddString("Input/Output BOX2");
   m_box.AddString("Input/Output BOX3");
   m_box.SetCurSel(nbox);