summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_core/src/ui_utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index 9ffb4b1217..2c09dc9613 100644
--- a/src/mir_core/src/ui_utils.cpp
+++ b/src/mir_core/src/ui_utils.cpp
@@ -676,14 +676,14 @@ CCtrlSpin::CCtrlSpin(CDlgBase *dlg, int ctrlId)
: CCtrlBase(dlg, ctrlId)
{}
-void CCtrlSpin::SetPosition(WORD max, WORD min)
+void CCtrlSpin::SetPosition(WORD wMax, WORD wMin)
{
- SendMsg(UDM_GETPOS, 0, MAKELONG(min, max));
+ SendMsg(UDM_SETPOS, 0, MAKELONG(wMin, wMax));
}
-void CCtrlSpin::SetRange(WORD max, WORD min)
+void CCtrlSpin::SetRange(WORD wMax, WORD wMin)
{
- SendMsg(UDM_SETRANGE, 0, MAKELONG(min, max));
+ SendMsg(UDM_SETRANGE, 0, MAKELONG(wMin, wMax));
}
/////////////////////////////////////////////////////////////////////////////////////////