summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin10/lib/mir_core.libbin313254 -> 313530 bytes
-rw-r--r--bin10/lib/mir_core64.libbin314278 -> 314560 bytes
-rw-r--r--bin12/lib/mir_core.libbin313254 -> 313530 bytes
-rw-r--r--bin12/lib/mir_core64.libbin314278 -> 314560 bytes
-rw-r--r--bin14/lib/mir_core.libbin313254 -> 313530 bytes
-rw-r--r--bin14/lib/mir_core64.libbin314278 -> 314560 bytes
-rw-r--r--include/m_gui.h1
-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
10 files changed, 8 insertions, 0 deletions
diff --git a/bin10/lib/mir_core.lib b/bin10/lib/mir_core.lib
index 443580479c..40a38f9015 100644
--- a/bin10/lib/mir_core.lib
+++ b/bin10/lib/mir_core.lib
Binary files differ
diff --git a/bin10/lib/mir_core64.lib b/bin10/lib/mir_core64.lib
index 29589f1c2d..2f3d1ccb59 100644
--- a/bin10/lib/mir_core64.lib
+++ b/bin10/lib/mir_core64.lib
Binary files differ
diff --git a/bin12/lib/mir_core.lib b/bin12/lib/mir_core.lib
index 443580479c..40a38f9015 100644
--- a/bin12/lib/mir_core.lib
+++ b/bin12/lib/mir_core.lib
Binary files differ
diff --git a/bin12/lib/mir_core64.lib b/bin12/lib/mir_core64.lib
index 29589f1c2d..2f3d1ccb59 100644
--- a/bin12/lib/mir_core64.lib
+++ b/bin12/lib/mir_core64.lib
Binary files differ
diff --git a/bin14/lib/mir_core.lib b/bin14/lib/mir_core.lib
index 443580479c..40a38f9015 100644
--- a/bin14/lib/mir_core.lib
+++ b/bin14/lib/mir_core.lib
Binary files differ
diff --git a/bin14/lib/mir_core64.lib b/bin14/lib/mir_core64.lib
index 29589f1c2d..2f3d1ccb59 100644
--- a/bin14/lib/mir_core64.lib
+++ b/bin14/lib/mir_core64.lib
Binary files differ
diff --git a/include/m_gui.h b/include/m_gui.h
index 322994b895..24d09ff14c 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -762,6 +762,7 @@ class MIR_CORE_EXPORT CCtrlSpin : public CCtrlBase
public:
CCtrlSpin(CDlgBase *dlg, int ctrlId);
+ WORD GetPosition();
void SetPosition(WORD max, WORD min = 0);
void SetRange(WORD max, WORD min = 0);
};
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));