MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ControlSetSlider

Method ControlSetSlider

source/script_gui.cpp:2015–2022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2013
2014
2015ResultType GuiType::ControlSetSlider(GuiControlType &aControl, int aValue, ResultToken &aResultToken)
2016{
2017 // Confirmed this fact from MSDN: That the control automatically deals with out-of-range values
2018 // by setting slider to min or max:
2019 SendMessage(aControl.hwnd, TBM_SETPOS, TRUE, ControlInvertSliderIfNeeded(aControl, aValue));
2020 // Above msg has no return value.
2021 return OK; // Don't break since don't want the other actions below to be taken.
2022}
2023
2024
2025ResultType GuiType::ControlGetSlider(ResultToken &aResultToken, GuiControlType &aControl)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected