HeartMouseDlg.h
上传用户:f12e50
上传日期:2007-01-04
资源大小:21k
文件大小:2k
源码类别:

其他小程序

开发平台:

Visual C++

  1. // HeartMouseDlg.h : header file
  2. //
  3. #if !defined(AFX_HEARTMOUSEDLG_H__995947FE_9574_11D3_A5ED_00104B6606DD__INCLUDED_)
  4. #define AFX_HEARTMOUSEDLG_H__995947FE_9574_11D3_A5ED_00104B6606DD__INCLUDED_
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CHeartMouseDlg dialog
  10. #define HEARTNUM 6
  11. #define POINTNUM 10240
  12. #define WM_MY_NOTIFY WM_USER+10
  13. #include "heartwindow.h"
  14. class CHeartMouseDlg : public CDialog
  15. {
  16. // Construction
  17. public:
  18. POINT points[POINTNUM];
  19. CHeartMouseDlg(CWnd* pParent = NULL); // standard constructor
  20. // Dialog Data
  21. //{{AFX_DATA(CHeartMouseDlg)
  22. enum { IDD = IDD_HEARTMOUSE_DIALOG };
  23. // NOTE: the ClassWizard will add data members here
  24. //}}AFX_DATA
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CHeartMouseDlg)
  27. protected:
  28. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. protected:
  32. HICON m_hIcon;
  33. HICON m_hIconbar;
  34. // Generated message map functions
  35. //{{AFX_MSG(CHeartMouseDlg)
  36. virtual BOOL OnInitDialog();
  37. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  38. afx_msg void OnPaint();
  39. afx_msg HCURSOR OnQueryDragIcon();
  40. afx_msg void OnDestroy();
  41. afx_msg void OnTimer(UINT nIDEvent);
  42. afx_msg void OnMyMove(WPARAM w, LPARAM l);
  43. afx_msg void OnMyNotify(WPARAM w, LPARAM l);
  44. afx_msg void OnHide();
  45. afx_msg void OnShow();
  46. afx_msg void OnLoad();
  47. virtual void OnCancel();
  48. afx_msg void OnOK();
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. private:
  52. HBITMAP m_hBitmap;
  53. void Start();
  54. void Stop();
  55. int total;
  56. HeartWindow * ha[HEARTNUM];
  57. int head, tail;
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_HEARTMOUSEDLG_H__995947FE_9574_11D3_A5ED_00104B6606DD__INCLUDED_)