diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-01 13:44:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-01 19:33:35 +0300 |
commit | bd408d296ccfa16dba379f3820a2007ff6963a6a (patch) | |
tree | a1fc9ebaf98017ac4691787dcef550b417c3f742 | |
parent | b8e1921d35f930eedb01abfe2af606dbed50a888 (diff) |
CCtrlSpin::SetPosition - method for a spin control initialization
-rw-r--r-- | bin10/lib/mir_core.lib | bin | 312968 -> 313254 bytes | |||
-rw-r--r-- | bin10/lib/mir_core64.lib | bin | 313986 -> 314278 bytes | |||
-rw-r--r-- | bin12/lib/mir_core.lib | bin | 312968 -> 313254 bytes | |||
-rw-r--r-- | bin12/lib/mir_core64.lib | bin | 313986 -> 314278 bytes | |||
-rw-r--r-- | bin14/lib/mir_core.lib | bin | 312968 -> 313254 bytes | |||
-rw-r--r-- | bin14/lib/mir_core64.lib | bin | 313986 -> 314278 bytes | |||
-rw-r--r-- | include/m_gui.h | 1 | ||||
-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 |
10 files changed, 8 insertions, 0 deletions
diff --git a/bin10/lib/mir_core.lib b/bin10/lib/mir_core.lib Binary files differindex 45e00cbb72..443580479c 100644 --- a/bin10/lib/mir_core.lib +++ b/bin10/lib/mir_core.lib diff --git a/bin10/lib/mir_core64.lib b/bin10/lib/mir_core64.lib Binary files differindex 406f09f04d..29589f1c2d 100644 --- a/bin10/lib/mir_core64.lib +++ b/bin10/lib/mir_core64.lib diff --git a/bin12/lib/mir_core.lib b/bin12/lib/mir_core.lib Binary files differindex 45e00cbb72..443580479c 100644 --- a/bin12/lib/mir_core.lib +++ b/bin12/lib/mir_core.lib diff --git a/bin12/lib/mir_core64.lib b/bin12/lib/mir_core64.lib Binary files differindex 406f09f04d..29589f1c2d 100644 --- a/bin12/lib/mir_core64.lib +++ b/bin12/lib/mir_core64.lib diff --git a/bin14/lib/mir_core.lib b/bin14/lib/mir_core.lib Binary files differindex 45e00cbb72..443580479c 100644 --- a/bin14/lib/mir_core.lib +++ b/bin14/lib/mir_core.lib diff --git a/bin14/lib/mir_core64.lib b/bin14/lib/mir_core64.lib Binary files differindex 406f09f04d..29589f1c2d 100644 --- a/bin14/lib/mir_core64.lib +++ b/bin14/lib/mir_core64.lib diff --git a/include/m_gui.h b/include/m_gui.h index 977939bba2..322994b895 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);
+ 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 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));
|