FLImaging 7.3.19.2
GUITreeCtrlBase.h
1#pragma once
2#include <set>
3
4namespace FLImaging
5{
6 namespace GUI
7 {
8 class CGUIControlDrawer;
9
10 class FL_EXPORT CGUITreeCtrlBase : public CTreeCtrl
11 {
12 public:
13 CGUITreeCtrlBase() noexcept;
14 CGUITreeCtrlBase(const CGUITreeCtrlBase& rh);
15 virtual ~CGUITreeCtrlBase();
16
17 public:
25 virtual bool RecursiveExpand(HTREEITEM hItem, UINT nCode, bool bSaveToConfig = true);
26
33 virtual void GetAllChildren(HTREEITEM hItem, std::set<HTREEITEM>& setOut);
34
35 virtual void SetBackgroundColor(const COLORREF clr);
36 virtual COLORREF GetBackgroundColor()const;
37
38 virtual void SetTextColor(const COLORREF clr);
39 virtual COLORREF GetTextColor()const;
40
41 virtual void SetItemHilightColor(const COLORREF clr);
42 virtual COLORREF GetItemHilightColor()const;
43
44 virtual void SetItemMatchingResultHilightColor(const COLORREF clr);
45 virtual COLORREF GetItemMatchingResultHilightColor()const;
46
47 public:
48 DECLARE_MESSAGE_MAP()
49 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
50 afx_msg void OnNMCustomdraw(NMHDR* pNMHDR, LRESULT* pResult);
51
52 protected:
53 CGUIControlDrawer& m_drawer;
54 COLORREF m_clrBackground;
55 CBrush m_brBackground;
56 COLORREF m_clrText;
57 COLORREF m_clrItemHilight;
58 COLORREF m_clrItemMatchingResultHilight;
59 };
60 }
61}
Definition D2DObject.h:12