You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.5 KiB
C++

#pragma once
#include "MyBttom.h"
#include "MyPictrueBttom.h"
#include "MyDlgView.h"
class CDlgDeviceMain : public CMyDlgView
{
DECLARE_DYNAMIC(CDlgDeviceMain)
public:
CDlgDeviceMain(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgDeviceMain();
virtual void SetTextCtrlItemID();
virtual void OnCancel();
virtual void UpdateLanguageTxt();//切换语言显示
void ChangeItemState();
void FuncExecute();
void SwitchChildDlg(EChildViewType ViewType);
// 对话框数据
enum { IDD = IDD_DEVICE_MAIN_DLG};
private:
void UpdateInfoExt();
void SetWndSize();
void ChangeItemStateExt();
void AdjustLayout();
void ResetModuleChildView();
void UpdateModuleChildView();
void InitPcsTestComb();
void InitChildArea();
CString GetModuleChildViewName(EChildViewType ChildViewType);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
void OnTimer(UINT nIDEvent);
afx_msg BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
private:
CComboBox m_PcsTestComb;//测试功能
CString m_TestStr1;
CString m_TestStr2;
CString m_EquipMsg;
int m_WarningTimes;//用来控制报警时按钮闪烁
vector<EChildViewType> m_ModuleChildViewVec;//当前模块的子界面
public:
afx_msg void OnBnClickedDeviceStateBtn();
afx_msg void OnBnClickedPCS();
afx_msg void OnBnClickedLoginBtn();
afx_msg void OnBnClickedRecordBtn();
afx_msg void OnBnClickedConfigBtn();
afx_msg void OnBnClickedRecipeBtn();
afx_msg void OnBnClickedLogoBtn();
afx_msg void OnBnClickedPcsTestBtn();
afx_msg void OnBnClickedModuleChildViewBtn1();
afx_msg void OnBnClickedModuleChildViewBtn2();
afx_msg void OnBnClickedModuleChildViewBtn3();
afx_msg void OnBnClickedModuleChildViewBtn4();
afx_msg void OnBnClickedModuleChildViewBtn5();
afx_msg void OnBnClickedModuleChildViewBtn6();
afx_msg void OnBnClickedModuleChildViewBtn7();
afx_msg void OnBnClickedModuleChildViewBtn8();
afx_msg void OnBnClickedModuleChildViewBtn9();
afx_msg void OnBnClickedModuleChildViewBtn10();
afx_msg void OnBnClickedModuleChildViewBtn11();
afx_msg void OnBnClickedModuleChildViewBtn12();
afx_msg void OnBnClickedCloseAppBtn();
afx_msg void OnBnClickedShowWindowMinBtn();
afx_msg void OnBnClickedUserMgrBtn();
};
extern CDlgDeviceMain *gDlgDeviceMain;