GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
MultipleSelectListBox.cpp
Go to the documentation of this file.
2
3using namespace std;
4
5namespace gui_framework
6{
7 MultipleSelectListBox::MultipleSelectListBox(const wstring& listBoxName, const utility::ComponentSettings& settings, BaseComposite* parent, bool isSorting) :
9 (
10 listBoxName,
11 settings,
12 parent
13 )
14 {
15 if (isSorting)
16 {
18 }
19 }
20
22 {
23 return typeid(MultipleSelectListBox).hash_code();
24 }
25
26 json::JSONBuilder MultipleSelectListBox::getStructure() const
27 {
28 using json::utility::jsonObject;
29
30 json::JSONBuilder builder = BaseMultipleSelectListBox::getStructure();
31 jsonObject& current = get<jsonObject>(builder[utility::to_string(windowName, ISerializable::getCodepage())]);
32
33 return builder;
34 }
35}
const std::wstring windowName
Base class for all windows that has children windows.
Base class for all multiple select list boxes.
virtual json::JSONBuilder getStructure() const override
MultipleSelectListBox(const std::wstring &listBoxName, const utility::ComponentSettings &settings, BaseComposite *parent, bool isSorting=false)
size_t getHash() const override
Used as key in creators.
json::JSONBuilder getStructure() const override
void appendStyle(HWND handle, LONG_PTR newStyle)
Append WinAPI style.
Definition Utility.cpp:21
string to_string(wstring_view stringToConvert, uint32_t codepage)
Definition Utility.cpp:41