123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #pragma once
- //#include "MainFrm.h"
- //----------------------
- #include "EnBitmap.h"
- #include "SkinButton.h"
- #include "SkinMenu.h"
- #include "SkinStatic.h"
- #include "SkinStatusBar.h"
- #include "SkinTabCtrl.h"
- #include "SkinToolBar.h"
- #include "SkinView.h"
- #include "afxwin.h"
- //class CMainFrame;
- // CDlgOfTop 对话框
- class CDlgOfTop : public CDialog
- {
- DECLARE_DYNAMIC(CDlgOfTop)
- public:
- CDlgOfTop(CWnd* pParent = NULL); // 标准构造函数
- virtual ~CDlgOfTop();
- // 对话框数据
- enum { IDD = IDD_TOP };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnInitDialog();
- void CalcWindowRect(const CSize &cs);
- void LoadSkin(CString strFileName);
- CString GetPathName(const char *filename);
- CString m_strSkinPathName;
- CEnBitmap bmp;
- protected:
- virtual void OnCancel();
- virtual void OnOK();
- public:
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //CMainFrame *pMainFrm;// 主框架窗口 [8/29/2013 hero]
- CSize _ClientSize;
- //------------------------------------------
- CSize GetSize(char *buf);
- void SplitString(char *buf,int nCount,CStringList& strList);
- //-----------------------------------
- //CStatic m_MainTop;
- CSkinStatic m_MainTop;
- CSkinButton _Btn_AlarmRecord; // 报警记录按钮 [8/27/2013 Zero]
- CSkinButton _Btn_NoticeRecord; // 通知记录按钮 [8/27/2013 Zero]
- CSkinButton _Btn_DataRecord; // 设备日志按钮 [8/27/2013 Zero]
- CSkinButton _Btn_SystemRecord; // 系统日志按钮 [8/27/2013 Zero]
- CSkinButton _Btn_AnalogMgr; // 变量字典按钮 [8/27/2013 Zero]
- CSkinButton _Btn_UserMgr; // 用户管理按钮 [8/27/2013 Zero]
- CSkinButton _Btn_ModifyPassWord;// 修改密码按钮 [8/27/2013 Zero]
- CSkinButton _Btn_HomePageConfig;// 首页设置按钮 [8/27/2013 Zero]
- CSkinButton _Btn_LeftTree; // 导航树按钮 [8/27/2013 Zero]
- CSkinButton _Btn_Exit; // 退出按钮 [8/27/2013 Zero]
- //--------------------------
- CSize _Size_AlarmRecord; // 报警记录按钮 [8/27/2013 Zero]
- CSize _Size_NoticeRecord; // 通知记录按钮 [8/27/2013 Zero]
- CSize _Size_DataRecord; // 设备日志按钮 [8/27/2013 Zero]
- CSize _Size_SystemRecord; // 系统日志按钮 [8/27/2013 Zero]
- CSize _Size_AnalogMgr; // 变量字典按钮 [8/27/2013 Zero]
- CSize _Size_UserMgr; // 用户管理按钮 [8/27/2013 Zero]
- CSize _Size_ModifyPassWord; // 修改密码按钮 [8/27/2013 Zero]
- CSize _Size_HomePageConfig; // 首页设置按钮 [8/27/2013 Zero]
- CSize _Sizen_LeftTree; // 导航树按钮 [8/27/2013 Zero]
- CSize _Size_Exit; // 退出按钮 [8/27/2013 Zero]
- afx_msg void OnBnClickedBtnAlarmrecord();
- afx_msg void OnBnClickedBtnNoticerecord();
- afx_msg void OnBnClickedBtnDatarecord();
- afx_msg void OnBnClickedBtnSystemrecord();
- afx_msg void OnBnClickedBtnAnalogmgr();
- afx_msg void OnBnClickedBtnUsermgr();
- afx_msg void OnBnClickedBtnModifypassword();
- afx_msg void OnBnClickedBtnHomepageconfig();
- afx_msg void OnBnClickedBtnLefttree();
- afx_msg void OnBnClickedBtnExit();
- // virtual BOOL DestroyWindow();
- };
|