GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseListView.cpp
Go to the documentation of this file.
1#include "BaseListView.h"
2
3using namespace std;
4
5namespace gui_framework
6{
7 BaseListView::BaseListView(const wstring& listViewName, const utility::ComponentSettings& settings, const styles::ListViewStyles& styles, BaseComposite* parent) :
9 (
10 standard_classes::listView,
11 listViewName,
12 settings,
13 styles,
14 parent
15 )
16 {
17
18 }
19
20 void BaseListView::setBackgroundColor(uint8_t red, uint8_t green, uint8_t blue)
21 {
22 BaseComponent::setBackgroundColor(red, green, blue);
23
24 SendMessageW(handle, LVM_SETBKCOLOR, NULL, static_cast<LPARAM>(backgroundColor));
25 }
26
27 void BaseListView::setTextColor(uint8_t red, uint8_t green, uint8_t blue)
28 {
29 BaseComponent::setTextColor(red, green, blue);
30
31 SendMessageW(handle, LVM_SETTEXTCOLOR, NULL, static_cast<LPARAM>(textColor));
32
33 SendMessageW(handle, LVM_SETTEXTBKCOLOR, NULL, static_cast<LPARAM>(backgroundColor));
34 }
35}
Base class for all windows, controls, etc.
virtual void setTextColor(uint8_t red, uint8_t green, uint8_t blue)
virtual void setBackgroundColor(uint8_t red, uint8_t green, uint8_t blue)
Base class for all windows that has children windows.
virtual void setTextColor(uint8_t red, uint8_t green, uint8_t blue) override
virtual void setBackgroundColor(uint8_t red, uint8_t green, uint8_t blue) final override
BaseListView(const std::wstring &listViewName, const utility::ComponentSettings &settings, const styles::ListViewStyles &styles, BaseComposite *parent)