00001 // test_eventDlg.h : Çì´õ ÆÄÀÏ 00002 // 00003 00004 #pragma once 00005 #include "atltypes.h" 00006 #include "afxwin.h" 00007 00008 00009 // Ctest_eventDlg ´ëÈ »óÀÚ 00010 class Ctest_eventDlg : public CDialog 00011 { 00012 // »ý¼ºÀÔ´Ï´Ù. 00013 public: 00014 Ctest_eventDlg(CWnd* pParent = NULL); // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù. 00015 00016 // ´ëÈ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù. 00017 enum { IDD = IDD_TEST_EVENT_DIALOG }; 00018 00019 protected: 00020 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù. 00021 00022 00023 // ±¸ÇöÀÔ´Ï´Ù. 00024 protected: 00025 HICON m_hIcon; 00026 00027 // »ý¼ºµÈ ¸Þ½ÃÁö ¸Ê ÇÔ¼ö 00028 virtual BOOL OnInitDialog(); 00029 afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 00030 afx_msg void OnPaint(); 00031 afx_msg HCURSOR OnQueryDragIcon(); 00032 DECLARE_MESSAGE_MAP() 00033 public: 00034 CPoint m_ptMouse; 00035 afx_msg void OnMouseMove(UINT nFlags, CPoint point); 00036 afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 00037 CString m_strMouseX; 00038 CString m_strMouseY; 00039 CString m_strMouseMsg; 00040 afx_msg void OnTimer(UINT_PTR nIDEvent); 00041 CString m_strLButton; 00042 CString m_strMouseY2; 00043 CString m_strMouseX2; 00044 CString m_strTspX0; 00045 CString m_strTspY0; 00046 CString m_strTspX1; 00047 CString m_strTspY1; 00048 bool m_bFlagSingleTouch; 00049 bool m_bFlagMtCenter; 00050 bool m_bFlagMtTouch0; 00051 afx_msg void OnBnClickedButtonSetCenter(); 00052 afx_msg void OnBnClickedButtonClearCenter(); 00053 afx_msg void OnBnClickedButtonSetTouch0(); 00054 afx_msg void OnBnClickedButtonClearTouch0(); 00055 bool m_bIsAnchorSet; 00056 void DrawAnchor(void); 00057 void DrawTouch(void); 00058 CRect m_rectTouch; 00059 CPoint m_ptTouch0; 00060 CString m_strConsole; 00061 CEdit m_edtConsole; 00062 bool m_bFlagLButtonDown; 00063 bool m_bOldFlagLButtonDown; 00064 };