📄 pageall.cpp
字号:
// PageALL.cpp : implementation file
//
#include "stdafx.h"
#include "DK20DieselizeDynamotor.h"
#include "PageALL.h"
#include "WraningControl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPageALL dialog
extern CWraningControl m_Warningcontrol[12];
extern BOOL bChinese;
CPageALL::CPageALL(CWnd* pParent /*=NULL*/)
: CDialog(CPageALL::IDD, pParent)
{
//{{AFX_DATA_INIT(CPageALL)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CPageALL::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPageALL)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPageALL, CDialog)
//{{AFX_MSG_MAP(CPageALL)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#define IDINCRE WM_USER +1000
/////////////////////////////////////////////////////////////////////////////
// CPageALL message handlers
BOOL CPageALL::OnInitDialog()
{
CDialog::OnInitDialog();
if (bChinese)
{
m_Warningcontrol[0].strText = _T("DK主机1监控") ;
m_Warningcontrol[0].Create(NULL ,_T("") ,WS_CHILD , CRect(6 , 1,215,577) ,this , IDINCRE+0x1 ,NULL ) ;
m_Warningcontrol[0].Init(18 , CRect(6 , 1,215,577) ) ;
m_Warningcontrol[0].ShowWindow(SW_SHOW) ;
m_Warningcontrol[1].strText = _T("DK主机1监控") ;
m_Warningcontrol[1].Create(NULL ,_T("") ,WS_CHILD , CRect(218 , 1,427,577) ,this , IDINCRE+0x2,NULL ) ;
m_Warningcontrol[1].Init(18 , CRect(218 , 1,427,577) ) ;
m_Warningcontrol[1].ShowWindow(SW_SHOW) ;
m_Warningcontrol[2].strText = _T("DK主机2监控") ;
m_Warningcontrol[2].Create(NULL ,_T("") ,WS_CHILD , CRect(430 , 1,639,577) ,this , IDINCRE+0x3 ,NULL ) ;
m_Warningcontrol[2].Init(18, CRect(430 , 1,639,577) ) ;
m_Warningcontrol[2].ShowWindow(SW_SHOW) ;
m_Warningcontrol[3].strText = _T("DK主机2监控") ;
m_Warningcontrol[3].Create(NULL ,_T("") ,WS_CHILD , CRect(642, 1,851,577) ,this , IDINCRE+0x4,NULL ) ;
m_Warningcontrol[3].Init(18 , CRect(642, 1,851,577) ) ;
m_Warningcontrol[3].ShowWindow(SW_SHOW) ;
m_Warningcontrol[4].strText = _T("DK主机3监控") ;
m_Warningcontrol[4].Create(NULL ,_T("") ,WS_CHILD , CRect(854 , 1,1063,577) ,this , IDINCRE+0x5 ,NULL ) ;
m_Warningcontrol[4].Init(18, CRect(854 , 1,1063,577) ) ;
m_Warningcontrol[4].ShowWindow(SW_SHOW) ;
m_Warningcontrol[5].strText = _T("DK主机3监控") ;
m_Warningcontrol[5].Create(NULL ,_T("") ,WS_CHILD , CRect(1066 , 1,1275,577) ,this , IDINCRE+0x6,NULL ) ;
m_Warningcontrol[5].Init(18 , CRect(1066 , 1,1275,577) ) ;
m_Warningcontrol[5].ShowWindow(SW_SHOW) ;
}
else
{
m_Warningcontrol[0].strText = _T("Dynamotor1 Inspect") ;
m_Warningcontrol[0].Create(NULL ,_T("") ,WS_CHILD , CRect(6 , 1,215,577) ,this , IDINCRE+0x1 ,NULL ) ;
m_Warningcontrol[0].Init(18 , CRect(6 , 1,215,577) ) ;
m_Warningcontrol[0].ShowWindow(SW_SHOW) ;
m_Warningcontrol[1].strText = _T("Dynamotor1 Inspect") ;
m_Warningcontrol[1].Create(NULL ,_T("") ,WS_CHILD , CRect(218 , 1,427,577) ,this , IDINCRE+0x2,NULL ) ;
m_Warningcontrol[1].Init(18 , CRect(218 , 1,427,577) ) ;
m_Warningcontrol[1].ShowWindow(SW_SHOW) ;
m_Warningcontrol[2].strText = _T("Dynamotor2 Inspect") ;
m_Warningcontrol[2].Create(NULL ,_T("") ,WS_CHILD , CRect(430 , 1,639,577) ,this , IDINCRE+0x3 ,NULL ) ;
m_Warningcontrol[2].Init(18 , CRect(430 , 1,639,577) ) ;
m_Warningcontrol[2].ShowWindow(SW_SHOW) ;
m_Warningcontrol[3].strText = _T("Dynamotor2 Inspect") ;
m_Warningcontrol[3].Create(NULL ,_T("") ,WS_CHILD , CRect(642, 1,851,577) ,this , IDINCRE+0x4,NULL ) ;
m_Warningcontrol[3].Init(18 , CRect(642, 1,851,577) ) ;
m_Warningcontrol[3].ShowWindow(SW_SHOW) ;
m_Warningcontrol[4].strText = _T("Dynamotor3 Inspect") ;
m_Warningcontrol[4].Create(NULL ,_T("") ,WS_CHILD , CRect(854 , 1,1063,577) ,this , IDINCRE+0x5 ,NULL ) ;
m_Warningcontrol[4].Init(18 , CRect(854 , 1,1063,577) ) ;
m_Warningcontrol[4].ShowWindow(SW_SHOW) ;
m_Warningcontrol[5].strText = _T("Dynamotor3 Inspect") ;
m_Warningcontrol[5].Create(NULL ,_T("") ,WS_CHILD , CRect(1066 , 1,1275,577) ,this , IDINCRE+0x6,NULL ) ;
m_Warningcontrol[5].Init(18 , CRect(1066 , 1,1275,577) ) ;
m_Warningcontrol[5].ShowWindow(SW_SHOW) ;
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -