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_UILISTVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)
19 #define AFX_UILISTVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_
23 #endif // _MSC_VER >= 1000
25 /////////////////////////////////////////////////////////////////////////////
29 class CTRL_EXT_CLASS CUIListView : public CView
32 CUIListView(UINT nID); // protected constructor used by dynamic creation
33 DECLARE_DYNAMIC(CUIListView)
37 virtual CUIODListCtrl &GetListCtrl();
38 virtual void CreateListCtrl();
43 // ClassWizard generated virtual function overrides
44 //{{AFX_VIRTUAL(CUIListView)
46 virtual void OnDraw(CDC* pDC); // overridden to draw this view
47 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
52 void SetDragDrop(bool bDragDrop);
55 virtual ~CUIListView();
57 virtual void AssertValid() const;
58 virtual void Dump(CDumpContext& dc) const;
61 // Generated message map functions
63 //{{AFX_MSG(CUIListView)
64 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
65 afx_msg void OnSetFocus(CWnd* pOldWnd);
66 afx_msg void OnSize(UINT nType, int cx, int cy);
68 afx_msg LRESULT OnAppUpdateAllViews( WPARAM wParam, LPARAM lParam );
71 CUIODListCtrl *m_pListCtrl;
78 inline void CUIListView::SetDragDrop(bool bDragDrop)
80 m_bDragDrop = bDragDrop;
83 inline bool CUIListView::IsDragDrop()
88 /////////////////////////////////////////////////////////////////////////////
90 //{{AFX_INSERT_LOCATION}}
91 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
93 #endif // !defined(AFX_UILISTVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)