FLImaging 6.5.8.1
GUITreeCtrlBase.h
1#pragma once
2#include <set>
3
4namespace FLImaging
5{
6 namespace GUI
7 {
8 class FL_EXPORT CGUITreeCtrlBase : public CTreeCtrl
9 {
10 public:
11 CGUITreeCtrlBase() noexcept;
12 CGUITreeCtrlBase(const CGUITreeCtrlBase& rh);
13 virtual ~CGUITreeCtrlBase();
14
15 public:
23 virtual bool RecursiveExpand(HTREEITEM hItem, UINT nCode, bool bWriteFileSystem = true);
24
31 virtual void GetAllChildren(HTREEITEM hItem, std::set<HTREEITEM>& setOut);
32
33 virtual void SetBackgroundColor(const COLORREF clr);
34 virtual COLORREF GetBackgroundColor()const;
35
36 virtual void SetTextColor(const COLORREF clr);
37 virtual COLORREF GetTextColor()const;
38
39 virtual void SetItemHilightColor(const COLORREF clr);
40 virtual COLORREF GetItemHilightColor()const;
41
42 virtual void SetItemMatchingResultHilightColor(const COLORREF clr);
43 virtual COLORREF GetItemMatchingResultHilightColor()const;
44
45 protected:
46 COLORREF m_clrBackground;
47 CBrush m_brBackground;
48 COLORREF m_clrText;
49 COLORREF m_clrItemHilight;
50 COLORREF m_clrItemMatchingResultHilight;
51 };
52 }
53}