1 //*******************************************************************************
4 // You may use this source code, compile or redistribute it as part of your application
5 // for free. You cannot redistribute it as a part of a software development
6 // library without the agreement of the author. If the sources are
7 // distributed along with the application, you should leave the original
8 // copyright notes in the source code without any changes.
9 // This code can be used WITHOUT ANY WARRANTIES at your own risk.
11 // For the latest updates to this code, check this site:
12 // http://www.masmex.com
15 // Copyright(C) 2000 Philip Oldaker <email: philip@masmex.com>
16 //*******************************************************************************
18 #if !defined(AFX_WIDGBASE_H__877329CA_C22E_11D0_B2D8_444553540000__INCLUDED_)
19 #define AFX_WIDGBASE_H__877329CA_C22E_11D0_B2D8_444553540000__INCLUDED_
23 #endif // _MSC_VER >= 1000
26 /////////////////////////////////////////////////////////////////////////////
27 // CDragDropImage command target
28 class CDragDropItem : public CObject
31 CDragDropItem(LPCRECT prcItem,LPCRECT prcIcon);
36 inline CDragDropItem::CDragDropItem(LPCRECT prcItem,LPCRECT prcIcon) : m_rcItem(prcItem),m_rcIcon(prcIcon)
47 class CDragDropImage : public CCmdTarget
49 DECLARE_DYNCREATE(CDragDropImage)
51 CDragDropImage();// protected constructor used by dynamic creation
53 CDragDropImage(int nSelected,int nType);
54 virtual ~CDragDropImage();
60 void AddItem(LPCRECT prcItem,LPCRECT prcIcon);
62 virtual void DrawDragImage (CDC *pDC,POINT point,POINT ActionPoint);
65 // ClassWizard generated virtual function overrides
66 //{{AFX_VIRTUAL(CDragDropImage)
71 void DrawItemImage(CDC *pDC, POINT point,const CRect &rcItem,const CRect &rcIcon);
75 CTypedPtrList<CObList,CDragDropItem*> m_itemList;
77 // Generated message map functions
78 //{{AFX_MSG(CDragDropImage)
79 // NOTE - the ClassWizard will add and remove member functions here.
85 /////////////////////////////////////////////////////////////////////////////
87 //{{AFX_INSERT_LOCATION}}
88 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
90 #endif // !defined(AFX_WIDGBASE_H__877329CA_C22E_11D0_B2D8_444553540000__INCLUDED_)