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 #ifndef __UI_FOLDER_REFRESH_H__
19 #define __UI_FOLDER_REFRESH_H__
21 class CTRL_EXT_CLASS CRefresh : public CObject
23 DECLARE_DYNAMIC(CRefresh)
25 CRefresh(HTREEITEM hItem,LPARAM lParam) : m_hItem(hItem), m_lParam(lParam) {};
27 LPARAM GetExtData() const { return m_lParam; }
28 HTREEITEM GetItem() const { return m_hItem; }
34 class CTRL_EXT_CLASS CRefreshCategory : public CRefresh
36 DECLARE_DYNAMIC(CRefreshCategory)
38 CRefreshCategory(HTREEITEM hItem,LPARAM lParam,long nCategory=0)
39 : m_nCategory(nCategory),CRefresh(hItem,lParam)
42 long GetCategory() const { return m_nCategory; }
47 #endif //__UI_FOLDER_REFRESH_H__