// 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() };