📄 dlgselrtu.cpp
字号:
// dlgSelRtu.cpp : implementation file
//
#include "stdafx.h"
#include "vqcwin.h"
#include "dlgSelRtu.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// dlgSelRtu dialog
dlgSelRtu::dlgSelRtu(CWnd* pParent /*=NULL*/)
: CDialog(dlgSelRtu::IDD, pParent)
{
//{{AFX_DATA_INIT(dlgSelRtu)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void dlgSelRtu::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(dlgSelRtu)
DDX_Control(pDX, IDC_RtuName, m_RtuName);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(dlgSelRtu, CDialog)
//{{AFX_MSG_MAP(dlgSelRtu)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// dlgSelRtu message handlers
BOOL dlgSelRtu::OnInitDialog()
{
CDialog::OnInitDialog();
pApp = (CVqcwinApp *) AfxGetApp();
char szText[128];
for (int i=0;i<pApp->maxPar.numMaxRtu;i++){
strcpy(szText, " , ");
if (pApp->VQCDefine[i])
if (pApp->VQCDefine[i]->globalDef.bCanUse)
strcpy(szText, "VQC已运行, ");
FjLibGetRtuName(i,(LPSTR)&szText[strlen(szText)]);
m_RtuName.AddString(szText);
}
m_RtuName.SetCurSel(pApp->currVqcRtuNo);
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void dlgSelRtu::OnOK()
{
// TODO: Add extra validation here
int i;
CDialog::OnOK();
i = m_RtuName.GetCurSel();
if (i!=CB_ERR) {
if (pApp->currVqcRtuNo != i){
pApp->currVqcRtuNo = i;
pApp->VQCDefine[i]->currDispZbNo = 0;
pApp->VQCDefine[i]->currDispMxNo = 0;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -