summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/mir_core.def1
-rw-r--r--src/mir_core/src/mir_core64.def1
-rw-r--r--src/mir_core/src/ui_utils.cpp5
3 files changed, 7 insertions, 0 deletions
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index c1f420f5cc..ab1a87b9c7 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -1037,3 +1037,4 @@ CallFunctionSync @1170
?SetItemHeight@CCtrlListBox@@QAEXHH@Z @1194 NONAME
?UseSystemColors@CCtrlBase@@QAEXXZ @1195 NONAME
?SetPosition@CCtrlSpin@@QAEXGG@Z @1196 NONAME
+?GetPosition@CCtrlSpin@@QAEGXZ @1197 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index c7d937c248..2f448e51a0 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -1037,3 +1037,4 @@ CallFunctionSync @1170
?SetItemHeight@CCtrlListBox@@QEAAXHH@Z @1194 NONAME
?UseSystemColors@CCtrlBase@@QEAAXXZ @1195 NONAME
?SetPosition@CCtrlSpin@@QEAAXGG@Z @1196 NONAME
+?GetPosition@CCtrlSpin@@QEAAGXZ @1197 NONAME
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index 00917d9a8f..a1ff5a9597 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)
{}
+WORD CCtrlSpin::GetPosition()
+{
+ return SendMsg(UDM_GETPOS, 0, 0);
+}
+
void CCtrlSpin::SetPosition(WORD wMax, WORD wMin)
{
SendMsg(UDM_SETPOS, 0, MAKELONG(wMin, wMax));