13 standard_classes::trackbarControl,
25 SendMessageW(
handle, TBM_CLEARSEL,
true, NULL);
30 return SendMessageW(
handle, TBM_GETLINESIZE, NULL, NULL);
35 SendMessageW(
handle, TBM_SETRANGEMIN,
true, min);
40 SendMessageW(
handle, TBM_SETRANGEMAX,
true, max);
45 SendMessageW(
handle, TBM_SETSELSTART,
true, startPosition);
50 SendMessageW(
handle, TBM_SETSELEND,
true, endPosition);
55 return SendMessageW(
handle, TBM_GETPOS, NULL, NULL);
60 return SendMessageW(
handle, TBM_GETRANGEMIN, NULL, NULL);
65 return SendMessageW(
handle, TBM_GETRANGEMAX, NULL, NULL);
70 return SendMessageW(
handle, TBM_GETSELSTART, NULL, NULL);
75 return SendMessageW(
handle, TBM_GETSELEND, NULL, NULL);
85 using json::utility::jsonObject;
91 current.data.push_back({
"minRange"s,
static_cast<int64_t
>(this->
getMinRange()) });
92 current.data.push_back({
"maxRange"s,
static_cast<int64_t
>(this->
getMaxRange()) });
94 current.data.push_back({
"selectionStart"s,
static_cast<int64_t
>(this->
getSelectionStart()) });
95 current.data.push_back({
"selectionEnd"s,
static_cast<int64_t
>(this->
getSelectionEnd()) });
Base class for all windows, controls, etc.
virtual json::JSONBuilder getStructure() const override
const std::wstring windowName
Base class for all windows that has children windows.
virtual LRESULT getMaxRange() const final
virtual LRESULT getMinRange() const final
virtual void setTextColor(uint8_t red, uint8_t green, uint8_t blue) final override
Not implemented.
virtual void setMinRange(int min) final
virtual LRESULT getPosition() const final
virtual void clearSelection() final
virtual void setMaxRange(int max) final
virtual LRESULT getSelectionStart() const final
virtual void setSelectionStart(int startPosition) final
virtual LRESULT getSelectionEnd() const final
BaseTrackbarControl(const std::wstring &trackbarName, const utility::ComponentSettings &settings, const styles::TrackbarControlStyles &styles, BaseComposite *parent)
virtual json::JSONBuilder getStructure() const override
virtual void setSelectionEnd(int endPosition) final
virtual LRESULT size() const final
void throwNotImplementedException(string_view methodName, string_view className)
string to_string(wstring_view stringToConvert, uint32_t codepage)
All settings for windows.