📄 pagedrang.cpp
字号:
// PageDrang.cpp : implementation file
//
#include "stdafx.h"
#include "DK20DieselizeDynamotor.h"
#include "PageDrang.h"
#include "WraningControl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPageDrang dialog
extern CWraningControl m_Warningcontrol[12];
extern BOOL bChinese;
CPageDrang::CPageDrang(CWnd* pParent /*=NULL*/)
: CDialog(CPageDrang::IDD, pParent)
{
//{{AFX_DATA_INIT(CPageDrang)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CPageDrang::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPageDrang)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPageDrang, CDialog)
//{{AFX_MSG_MAP(CPageDrang)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#define IDINCRE WM_USER +1000
/////////////////////////////////////////////////////////////////////////////
// CPageDrang message handlers
BOOL CPageDrang::OnInitDialog()
{
CDialog::OnInitDialog();
if (bChinese)
{
m_Warningcontrol[6].strText = _T("1#机组压力监控") ;
m_Warningcontrol[6].Create(NULL ,_T("") ,WS_CHILD , CRect(5 , 1,425,577) ,this , IDINCRE+0x7 ,NULL ) ;
m_Warningcontrol[6].Init(18 , CRect(5 , 1,425,577) ) ;
m_Warningcontrol[6].ShowWindow(SW_SHOW) ;
m_Warningcontrol[7].strText = _T("2#机组压力监控") ;
m_Warningcontrol[7].Create(NULL ,_T("") ,WS_CHILD , CRect(430 , 1,850,577) ,this , IDINCRE+0x8,NULL ) ;
m_Warningcontrol[7].Init(18, CRect(430 , 1,850,577) ) ;
m_Warningcontrol[7].ShowWindow(SW_SHOW) ;
m_Warningcontrol[8].strText = _T("3#机组压力监控") ;
m_Warningcontrol[8].Create(NULL ,_T("") ,WS_CHILD , CRect(855 , 1,1275,577) ,this , IDINCRE+0x9 ,NULL ) ;
m_Warningcontrol[8].Init(18 , CRect(855 , 1,1275,577) ) ;
m_Warningcontrol[8].ShowWindow(SW_SHOW) ;
}
else
{
m_Warningcontrol[6].strText = _T("Dynamotor1 DRANG INSPECT") ;
m_Warningcontrol[6].Create(NULL ,_T("") ,WS_CHILD , CRect(5 , 1,425,577) ,this , IDINCRE+0x7 ,NULL ) ;
m_Warningcontrol[6].Init(18 , CRect(5 , 1,425,577) ) ;
m_Warningcontrol[6].ShowWindow(SW_SHOW) ;
m_Warningcontrol[7].strText = _T("Dynamotor2 DRANG INSPECT") ;
m_Warningcontrol[7].Create(NULL ,_T("") ,WS_CHILD , CRect(430 , 1,850,577) ,this , IDINCRE+0x8,NULL ) ;
m_Warningcontrol[7].Init(18 , CRect(430 , 1,850,577) ) ;
m_Warningcontrol[7].ShowWindow(SW_SHOW) ;
m_Warningcontrol[8].strText = _T("Dynamotor3 DRANG INSPECT") ;
m_Warningcontrol[8].Create(NULL ,_T("") ,WS_CHILD , CRect(855 , 1,1275,577) ,this , IDINCRE+0x9 ,NULL ) ;
m_Warningcontrol[8].Init(18 , CRect(855 , 1,1275,577) ) ;
m_Warningcontrol[8].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 + -