-rw-r--r-- | DragPad.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/DragPad.h b/DragPad.h new file mode 100644 index 0000000..b5f67f2 --- a/dev/null +++ b/DragPad.h | |||
@@ -0,0 +1,62 @@ | |||
1 | // DragPad.h : header file | ||
2 | // | ||
3 | |||
4 | ///////////////////////////////////////////////////////////////////////////// | ||
5 | // CDragPad dialog | ||
6 | |||
7 | class CDragPad; | ||
8 | class CDUTarget : public COleDropTarget{ | ||
9 | public: | ||
10 | CDragPad* m_Pad; | ||
11 | DROPEFFECT m_dropAsEntered; | ||
12 | |||
13 | virtual DROPEFFECT OnDragEnter(CWnd* pWnd,COleDataObject* pDO,DWORD dwKeyState,CPoint pt); | ||
14 | virtual DROPEFFECT OnDragOver(CWnd* pWnd,COleDataObject* pDO,DWORD dwKeyState,CPoint pt); | ||
15 | virtual DROPEFFECT OnDropEx(CWnd* pWnd,COleDataObject* pDO,DROPEFFECT dropDefault,DROPEFFECT dropList,CPoint pt); | ||
16 | }; | ||
17 | |||
18 | class CDipstickDlg; | ||
19 | class CDragPad : public CDialog | ||
20 | { | ||
21 | // Construction | ||
22 | public: | ||
23 | CDUTarget m_DropTarget; | ||
24 | virtual BOOL PreTranslateMessage(MSG* pMsg); | ||
25 | void ToggleMainWindowDisplay(); | ||
26 | CDipstickDlg *m_Daddy; | ||
27 | ~CDragPad(); | ||
28 | CDragPad(CWnd* pParent = NULL); // standard constructor | ||
29 | |||
30 | // Dialog Data | ||
31 | //{{AFX_DATA(CDragPad) | ||
32 | enum { IDD = IDD_DRAGPAD }; | ||
33 | CAnimateCtrlm_DragNDropTarget; | ||
34 | //}}AFX_DATA | ||
35 | |||
36 | |||
37 | // Overrides | ||
38 | // ClassWizard generated virtual function overrides | ||
39 | //{{AFX_VIRTUAL(CDragPad) | ||
40 | protected: | ||
41 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support | ||
42 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs); | ||
43 | //}}AFX_VIRTUAL | ||
44 | |||
45 | // Implementation | ||
46 | protected: | ||
47 | CToolTipCtrl m_tooltip; | ||
48 | |||
49 | // Generated message map functions | ||
50 | //{{AFX_MSG(CDragPad) | ||
51 | virtual BOOL OnInitDialog(); | ||
52 | afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos); | ||
53 | afx_msg BOOL OnNcActivate(BOOL bActive); | ||
54 | afx_msg void OnDestroy(); | ||
55 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); | ||
56 | afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); | ||
57 | afx_msg void OnRButtonDown(UINT nFlags, CPoint point); | ||
58 | afx_msg void OnLButtonDown(UINT nFlags, CPoint point); | ||
59 | afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); | ||
60 | //}}AFX_MSG | ||
61 | DECLARE_MESSAGE_MAP() | ||
62 | }; | ||