author | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
commit | 5305ddd8332ebd905ebef3b8365fc0d736858a7a (patch) (unidiff) | |
tree | ba6dc874bdcb00bd2e116b377a92f347ab81a733 /DragPad.h | |
download | dipstick-5305ddd8332ebd905ebef3b8365fc0d736858a7a.zip dipstick-5305ddd8332ebd905ebef3b8365fc0d736858a7a.tar.gz dipstick-5305ddd8332ebd905ebef3b8365fc0d736858a7a.tar.bz2 |
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/dipstick/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
-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 | }; | ||