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

Method ControlInvertSliderIfNeeded

source/script_gui.cpp:9671–9677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9669
9670
9671int GuiType::ControlInvertSliderIfNeeded(GuiControlType &aControl, int aPosition)
9672// Caller has ensured that aControl.type is slider.
9673{
9674 return (aControl.attrib & GUI_CONTROL_ATTRIB_ALTBEHAVIOR)
9675 ? ((int)SendMessage(aControl.hwnd, TBM_GETRANGEMAX, 0, 0) - aPosition) + (int)SendMessage(aControl.hwnd, TBM_GETRANGEMIN, 0, 0)
9676 : aPosition; // No inversion necessary.
9677}
9678
9679
9680

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected