Dlg_Main.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma once
  2. #include "stdafx.h"
  3. #include "afxcmn.h"
  4. #include "TabSheet.h"
  5. #include "BtnST.h"
  6. #include "HKVisionDlg.h"
  7. #include "PlayerDlg.h"
  8. #include "Dlg_Settings.h"
  9. #include "afxwin.h"
  10. // CDlg_Main 对话框
  11. class CDlg_Main : public CDialog
  12. {
  13. DECLARE_DYNAMIC(CDlg_Main)
  14. public:
  15. CDlg_Main(CWnd* pParent = NULL); // 标准构造函数
  16. virtual ~CDlg_Main();
  17. CHKVisionDlg *m_pMonitor;
  18. CPlayerDlg *m_pPlayBack;
  19. CDlg_Settings *m_pSettings;
  20. // 对话框数据
  21. enum { IDD = IDD_DLG_MAIN };
  22. protected:
  23. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  24. DECLARE_MESSAGE_MAP()
  25. public:
  26. CTabSheet m_Tab_Item;
  27. virtual BOOL OnInitDialog();
  28. void SetCtrlPos();
  29. CButtonST m_Btn_Moniter;
  30. CButtonST m_Btn_PlayBack;
  31. CButtonST m_Btn_Settings;
  32. void InitChildWindow(void);
  33. void HighAllDlg();
  34. void InitMoniterRect();
  35. void InitPlayBackRect();
  36. void InitSettingsRect();
  37. afx_msg void OnBnClickedBtnMoniter();
  38. afx_msg void OnBnClickedBtnPlayback();
  39. afx_msg void OnBnClickedBtnSettings();
  40. int m_nShowIndex;
  41. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  42. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  43. };