-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathColorListView.h
42 lines (32 loc) · 896 Bytes
/
ColorListView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "ColorHeaderCtrl.h"
#include <memory>
// CColorListView view
class CColorListView : public CListView
{
DECLARE_DYNCREATE(CColorListView)
protected:
CColorListView() = default; // protected constructor used by dynamic creation
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorListView)
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
public:
BOOL SetTextColor(const COLORREF cr);
BOOL SetTextBkColor(const COLORREF cr);
CColorHeaderCtrl* GetHeaderCtrl() { return m_pHeaderCtrl.get(); }
public:
#ifdef _DEBUG
virtual void AssertValid() const;
#ifndef _WIN32_WCE
virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
COLORREF m_clrDefBack{}, m_clrDefText{};
std::unique_ptr<CColorHeaderCtrl> m_pHeaderCtrl{ std::make_unique<CColorHeaderCtrl>() };
protected:
DECLARE_MESSAGE_MAP()
};