Small white one, get the MFC programs
//Dialog_SelConfig_SMV. CPP: implementation file
//
# include "stdafx. H"
# include "ProcessBusTool. H"
# include "Dialog_SelConfig_SMV. H"
# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILE
The static char THIS_FILE []=__FILE__;
# endif
/////////////////////////////////////////////////////////////////////////////
//CDialog_SelConfig_SMV dialog
CDialog_SelConfig_SMV: : CDialog_SelConfig_SMV (pParent/*=NULL CWnd * */)
: CDialog (CDialog_SelConfig_SMV: : IDD, pParent)
{
//{{AFX_DATA_INIT (CDialog_SelConfig_SMV)
/* m_noASDU=TRUE;//FALSE;
M_security=FALSE;
M_svid=TRUE;//FALSE;
M_datset=FALSE;
M_smpCnt=TRUE;//FALSE;
M_confRev=TRUE;//FALSE;
M_refrTm=FALSE;
M_smpSynch=FALSE;
M_smpRate=FALSE;
M_DataLen=TRUE;//FALSE;
M_text_security=_T (" ");
GXU_SMV m_text_svid=_T (" ");
M_text_datset=_T (" ");
M_text_confRev=1;
M_text_smpSynch=FALSE;
M_text_smpCnt=0;
M_text_smpRate=80;
M_text_DataLen=64;
M_text_noASDU=1; */
//}} AFX_DATA_INIT
}
Void CDialog_SelConfig_SMV: : DoDataExchange (CDataExchange * symbol)
{
CDialog: : DoDataExchange (symbol);
//{{AFX_DATA_MAP (CDialog_SelConfig_SMV)
DDX_Check (symbol, IDC_CHECK1, m_noASDU);
DDX_Check (symbol, IDC_CHECK2 m_security);
DDX_Check (symbol, IDC_CHECK3 m_svid);
DDX_Check (symbol, IDC_CHECK4 m_datset);
DDX_Check (symbol, IDC_CHECK5 m_smpCnt);
DDX_Check (symbol, IDC_CHECK6 m_confRev);
DDX_Check (symbol, IDC_CHECK7 m_refrTm);
DDX_Check (symbol, IDC_CHECK8 m_smpSynch);
DDX_Check (symbol, IDC_CHECK9 m_smpRate);
DDX_Check (symbol, IDC_CHECK10 m_DataLen);
DDX_Text (IDC_EDIT2 symbol, m_text_security);
DDV_MaxChars (symbol, m_text_security, 64);
DDX_Text (IDC_EDIT3 symbol, m_text_svid);
DDV_MaxChars (symbol, m_text_svid, 64);
DDX_Text (symbol, IDC_EDIT4 m_text_datset);
DDV_MaxChars (symbol, m_text_datset, 64);
DDX_Text (symbol, IDC_EDIT6 m_text_confRev);
DDX_Text (symbol, IDC_EDIT8 m_text_smpSynch);
DDX_Text (symbol, IDC_EDIT5 m_text_smpCnt);
DDX_Text (symbol, IDC_EDIT9 m_text_smpRate);
DDV_MinMaxInt (symbol, m_text_smpRate, 0, 10000);
DDX_Text (symbol, IDC_EDIT10 m_text_DataLen);
DDX_Text (symbol, IDC_EDIT1 m_text_noASDU);
DDV_MinMaxByte (symbol, m_text_noASDU, 0, 32);
//}} AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP (CDialog_SelConfig_SMV CDialog)
//{{AFX_MSG_MAP (CDialog_SelConfig_SMV)
ON_WM_CANCELMODE ()
ON_BN_CLICKED (IDC_CHECK1, OnCheck1)
ON_BN_CLICKED (IDC_CHECK2 OnCheck2)
ON_BN_CLICKED (IDC_CHECK3 OnCheck3)
ON_BN_CLICKED (IDC_CHECK4 OnCheck4)
ON_BN_CLICKED (IDC_CHECK5 OnCheck5)
ON_BN_CLICKED (IDC_CHECK6 OnCheck6)
ON_BN_CLICKED (IDC_CHECK7 OnCheck7)
ON_BN_CLICKED (IDC_CHECK8 OnCheck8)
ON_BN_CLICKED (IDC_CHECK9 OnCheck9)
ON_BN_CLICKED (IDC_CHECK10 OnCheck10)
//}} AFX_MSG_MAP
END_MESSAGE_MAP ()
/////////////////////////////////////////////////////////////////////////////
//CDialog_SelConfig_SMV message handlers
BOOL CDialog_SelConfig_SMV: : OnInitDialog ()
{
CDialog: : OnInitDialog ();
//TODO: Add extra initialization here
TextCheck ();
return TRUE;//return TRUE unless you set the focus to a control
//the EXCEPTION: OCX Property Pages should return FALSE
}
Void CDialog_SelConfig_SMV: : OnCancelMode ()
{
CDialog: : OnCancelMode ();
//TODO: Add your message handler code here
}
Void CDialog_SelConfig_SMV: : TextCheck ()
{
TextCheck0 (IDC_EDIT1 m_noASDU);
//TextCheck0 (IDC_EDIT2 m_security);
TextCheck0 (IDC_EDIT3 m_svid);
TextCheck0 (IDC_EDIT4 m_datset);
TextCheck0 (IDC_EDIT6 m_confRev);
TextCheck0 (IDC_EDIT9 m_smpRate);
TextCheck0 (IDC_EDIT10 m_DataLen);
/* for (int I=IDC_EDIT1. i<10 + IDC_EDIT1. I++)
GetDlgItem ((CWnd *) (I)) - & gt; The EnableWindow (0); */
}
Void CDialog_SelConfig_SMV: : OnCheck1 ()
{
//TODO: Add your the control notification handler code here
The UpdateData (1);
TextCheck0 (IDC_EDIT1 m_noASDU);
}
Void CDialog_SelConfig_SMV: : OnCheck2 ()
{
//TODO: Add your the control notification handler code here
//the UpdateData (1);
//TextCheck0 (IDC_EDIT1, m_noASDU)
}
Void CDialog_SelConfig_SMV: : OnCheck3 ()
{
//TODO: Add your the control notification handler code here
The UpdateData (1);
TextCheck0 (IDC_EDIT3 m_svid);
}
Void CDialog_SelConfig_SMV: : OnCheck4 ()
{
//TODO: Add your the control notification handler code here
The UpdateData (1);
TextCheck0 (IDC_EDIT4 m_datset);
}
Void CDialog_SelConfig_SMV: : OnCheck5 ()
{
//TODO: Add your the control notification handler code here
}
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull