Dlg_ToolBar.h 814 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "DigitalClock.h"
  3. // CDlg_ToolBar 对话框
  4. class CDlg_ToolBar : public CDialog
  5. {
  6. DECLARE_DYNAMIC(CDlg_ToolBar)
  7. public:
  8. CDlg_ToolBar(CWnd* pParent = NULL); // 标准构造函数
  9. virtual ~CDlg_ToolBar();
  10. // 对话框数据
  11. enum { IDD = IDD_DLG_TOOLBAR };
  12. protected:
  13. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  14. DECLARE_MESSAGE_MAP()
  15. public:
  16. CRect _rtClient;
  17. virtual BOOL OnInitDialog();
  18. void SetPos( int iWidth,int iHeight );
  19. BOOL DisplayBMP( int nX1,int nY1,int nXX,int nYY,CString strBMPFile,BOOL bStretch );
  20. afx_msg void OnPaint();
  21. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  22. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  23. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  24. CDigitalClock m_clock;
  25. afx_msg void OnTimer(UINT nIDEvent);
  26. };