1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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()
};
|