update for HEAD-2003091401
[reactos.git] / subsys / system / explorer / Seashell / SeaShellExt / Include / UIFolderRefresh.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 #ifndef __UI_FOLDER_REFRESH_H__
19 #define __UI_FOLDER_REFRESH_H__
20
21 class CTRL_EXT_CLASS CRefresh : public CObject
22 {
23         DECLARE_DYNAMIC(CRefresh)
24 public:
25         CRefresh(HTREEITEM hItem,LPARAM lParam) : m_hItem(hItem), m_lParam(lParam) {};
26         ~CRefresh() {};
27         LPARAM GetExtData() const { return m_lParam; }
28         HTREEITEM GetItem() const { return m_hItem; }
29 private:
30         LPARAM m_lParam;
31         HTREEITEM m_hItem;
32 };
33
34 class CTRL_EXT_CLASS CRefreshCategory : public CRefresh
35 {
36         DECLARE_DYNAMIC(CRefreshCategory)
37 public:
38         CRefreshCategory(HTREEITEM hItem,LPARAM lParam,long nCategory=0) 
39                 : m_nCategory(nCategory),CRefresh(hItem,lParam)
40         {}
41 public:
42         long GetCategory() const { return m_nCategory; }
43 private:
44         long m_nCategory;
45 };
46
47 #endif //__UI_FOLDER_REFRESH_H__