summaryrefslogtreecommitdiffabout
path: root/DragPad.h
authorMichael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
committer Michael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
commit5305ddd8332ebd905ebef3b8365fc0d736858a7a (patch) (side-by-side diff)
treeba6dc874bdcb00bd2e116b377a92f347ab81a733 /DragPad.h
downloaddipstick-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
Diffstat (limited to 'DragPad.h') (more/less context) (show whitespace changes)
-rw-r--r--DragPad.h62
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 @@
+// DragPad.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CDragPad dialog
+
+class CDragPad;
+class CDUTarget : public COleDropTarget {
+public:
+ CDragPad* m_Pad;
+ DROPEFFECT m_dropAsEntered;
+
+ virtual DROPEFFECT OnDragEnter(CWnd* pWnd,COleDataObject* pDO,DWORD dwKeyState,CPoint pt);
+ virtual DROPEFFECT OnDragOver(CWnd* pWnd,COleDataObject* pDO,DWORD dwKeyState,CPoint pt);
+ virtual DROPEFFECT OnDropEx(CWnd* pWnd,COleDataObject* pDO,DROPEFFECT dropDefault,DROPEFFECT dropList,CPoint pt);
+};
+
+class CDipstickDlg;
+class CDragPad : public CDialog
+{
+// Construction
+public:
+ CDUTarget m_DropTarget;
+ virtual BOOL PreTranslateMessage(MSG* pMsg);
+ void ToggleMainWindowDisplay();
+ CDipstickDlg *m_Daddy;
+ ~CDragPad();
+ CDragPad(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CDragPad)
+ enum { IDD = IDD_DRAGPAD };
+ CAnimateCtrl m_DragNDropTarget;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CDragPad)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+ CToolTipCtrl m_tooltip;
+
+ // Generated message map functions
+ //{{AFX_MSG(CDragPad)
+ virtual BOOL OnInitDialog();
+ afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
+ afx_msg BOOL OnNcActivate(BOOL bActive);
+ afx_msg void OnDestroy();
+ afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
+ afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
+ afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
+ afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
+ afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};