6#pragma push_macro("min")
18 styles::MultipleSelectListBoxStyles(),
27 LRESULT result = SendMessageW(
handle, LB_GETSELCOUNT, NULL, NULL);
40 vector<wstring> items;
41 vector<int> indices(itemsCount);
43 LRESULT result = SendMessageW(
handle, LB_GETSELITEMS, itemsCount,
reinterpret_cast<LPARAM
>(indices.data()));
50 items.reserve(itemsCount);
52 for (
const auto& i : indices)
62 if (SendMessageW(
handle, LB_SELITEMRANGEEX, firstItemIndex, lastItemIndex) == LB_ERR)
70 LRESULT result = SendMessageW(
handle, LB_SETSEL,
true, index);
82 using json::utility::jsonObject;
91#pragma pop_macro("min")
virtual json::JSONBuilder getStructure() const override
const std::wstring windowName
Base class for all windows that has children windows.
Base class for all list boxes.
std::wstring getValue(size_t index) const
void selectMultipleItems(WPARAM firstItemIndex, LPARAM lastItemIndex) const
BaseMultipleSelectListBox(const std::wstring &listBoxName, const utility::ComponentSettings &settings, BaseComposite *parent)
virtual json::JSONBuilder getStructure() const override
std::vector< std::wstring > getSelectedItems() const
virtual LRESULT setCurrentSelection(LRESULT index) const final override
LRESULT getCurrentSelections() const
Exception for all list classes exceptions.
string to_string(wstring_view stringToConvert, uint32_t codepage)
All settings for windows.