From bd408d296ccfa16dba379f3820a2007ff6963a6a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 1 Dec 2016 13:44:43 +0300 Subject: CCtrlSpin::SetPosition - method for a spin control initialization --- src/mir_core/src/mir_core.def | 1 + src/mir_core/src/mir_core64.def | 1 + src/mir_core/src/ui_utils.cpp | 5 +++++ 3 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index c4c4a7f637..c1f420f5cc 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1036,3 +1036,4 @@ CallFunctionSync @1170 ?GetItemRect@CCtrlListBox@@QAEHHPAUtagRECT@@@Z @1193 NONAME ?SetItemHeight@CCtrlListBox@@QAEXHH@Z @1194 NONAME ?UseSystemColors@CCtrlBase@@QAEXXZ @1195 NONAME +?SetPosition@CCtrlSpin@@QAEXGG@Z @1196 NONAME diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 299eac88c3..c7d937c248 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1036,3 +1036,4 @@ CallFunctionSync @1170 ?GetItemRect@CCtrlListBox@@QEAAHHPEAUtagRECT@@@Z @1193 NONAME ?SetItemHeight@CCtrlListBox@@QEAAXHH@Z @1194 NONAME ?UseSystemColors@CCtrlBase@@QEAAXXZ @1195 NONAME +?SetPosition@CCtrlSpin@@QEAAXGG@Z @1196 NONAME diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 960393eba9..9ffb4b1217 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -676,6 +676,11 @@ CCtrlSpin::CCtrlSpin(CDlgBase *dlg, int ctrlId) : CCtrlBase(dlg, ctrlId) {} +void CCtrlSpin::SetPosition(WORD max, WORD min) +{ + SendMsg(UDM_GETPOS, 0, MAKELONG(min, max)); +} + void CCtrlSpin::SetRange(WORD max, WORD min) { SendMsg(UDM_SETRANGE, 0, MAKELONG(min, max)); -- cgit v1.2.3