update for HEAD-2003091401
[reactos.git] / subsys / system / explorer / Seashell / SeaShellExt / Include / UIListView.h
1 //*******************************************************************************
2 // COPYRIGHT NOTES
3 // ---------------
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.
10 // 
11 // For the latest updates to this code, check this site:
12 // http://www.masmex.com 
13 // after Sept 2000
14 // 
15 // Copyright(C) 2000 Philip Oldaker <email: philip@masmex.com>
16 //*******************************************************************************
17
18 #if !defined(AFX_UILISTVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)
19 #define AFX_UILISTVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_
20
21 #if _MSC_VER >= 1000
22 #pragma once
23 #endif // _MSC_VER >= 1000
24
25 /////////////////////////////////////////////////////////////////////////////
26 // CUIListView view
27 #include "UICtrl.h"
28
29 class CTRL_EXT_CLASS CUIListView : public CView
30 {
31 protected:
32         CUIListView(UINT nID);           // protected constructor used by dynamic creation
33         DECLARE_DYNAMIC(CUIListView)
34
35 // Attributes
36 public:
37         virtual CUIODListCtrl &GetListCtrl();
38         virtual void CreateListCtrl();
39 // Operations
40 public:
41
42 // Overrides
43         // ClassWizard generated virtual function overrides
44         //{{AFX_VIRTUAL(CUIListView)
45         protected:
46         virtual void OnDraw(CDC* pDC);      // overridden to draw this view
47         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
48         //}}AFX_VIRTUAL
49
50 // Implementation
51 protected:
52         void SetDragDrop(bool bDragDrop);
53         bool IsDragDrop();
54
55         virtual ~CUIListView();
56 #ifdef _DEBUG
57         virtual void AssertValid() const;
58         virtual void Dump(CDumpContext& dc) const;
59 #endif
60
61         // Generated message map functions
62 protected:
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);
67         //}}AFX_MSG
68         afx_msg LRESULT OnAppUpdateAllViews( WPARAM wParam, LPARAM lParam );
69         DECLARE_MESSAGE_MAP()
70 protected:
71         CUIODListCtrl *m_pListCtrl;
72         UINT m_Style;
73         UINT m_nID;
74 private:
75         bool m_bDragDrop;
76 };
77
78 inline void CUIListView::SetDragDrop(bool bDragDrop)
79 {
80         m_bDragDrop = bDragDrop;
81 }
82
83 inline bool CUIListView::IsDragDrop()
84 {
85         return m_bDragDrop;
86 }
87
88 /////////////////////////////////////////////////////////////////////////////
89
90 //{{AFX_INSERT_LOCATION}}
91 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
92
93 #endif // !defined(AFX_UILISTVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)