From 8e6d25afcc7ab8a9e473872055480a318e9919e6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Dec 2016 12:29:54 +0300 Subject: parameter names conflict with macroses / functions --- src/mir_core/src/ui_utils.cpp | 8 ++++---- 1 file 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)); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3