From 5305ddd8332ebd905ebef3b8365fc0d736858a7a Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 05 Jul 2004 01:53:09 +0000 Subject: initial commit into svn repository git-svn-id: http://svn.klever.net/kin/dipstick/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8 --- (limited to 'DragPad.h') 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() +}; -- cgit v0.9.0.2