diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-02 15:41:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-02 15:41:52 +0300 |
commit | 428051b8b98331a7419ca025be55a1ce0c52f826 (patch) | |
tree | 2c828bbb98ffc1820261739b4d40fc211d91f1b1 /src/mir_core | |
parent | 809afa397b0c0c2c6e220f67c01278b406290fa8 (diff) |
CCtrlSpin::GetPosition() - new method of spin control
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 5 |
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));
|