diff options
-rw-r--r-- | bin10/lib/mir_core.lib | bin | 303874 -> 305694 bytes | |||
-rw-r--r-- | bin10/lib/mir_core64.lib | bin | 304692 -> 306562 bytes | |||
-rw-r--r-- | bin12/lib/mir_core.lib | bin | 303874 -> 305694 bytes | |||
-rw-r--r-- | bin12/lib/mir_core64.lib | bin | 304692 -> 306562 bytes | |||
-rw-r--r-- | bin14/lib/mir_core.lib | bin | 303874 -> 305694 bytes | |||
-rw-r--r-- | bin14/lib/mir_core64.lib | bin | 304692 -> 306562 bytes | |||
-rw-r--r-- | include/m_gui.h | 15 | ||||
-rw-r--r-- | src/mir_core/src/mir_core.def | 7 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 7 | ||||
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 17 |
10 files changed, 46 insertions, 0 deletions
diff --git a/bin10/lib/mir_core.lib b/bin10/lib/mir_core.lib Binary files differindex 3e12883dd4..628960dccb 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 afffb493c0..e545ce6190 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 3e12883dd4..628960dccb 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 afffb493c0..e545ce6190 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 3e12883dd4..628960dccb 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 afffb493c0..e545ce6190 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 bea30ce302..ffc80b1bfd 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -697,6 +697,21 @@ public: virtual void OnApply();
virtual void OnReset();
+
+ void SetMaxLength(unsigned int len);
+};
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// CCtrlSpin
+
+class MIR_CORE_EXPORT CCtrlSpin : public CCtrlBase
+{
+ typedef CCtrlData CSuper;
+
+public:
+ CCtrlSpin(CDlgBase *dlg, int ctrlId);
+
+ void SetRange(short min, short max);
};
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 6e1e032d92..b6e57d3b9d 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1002,3 +1002,10 @@ db_get_contact_count @1158 db_is_contact @1159
db_set_safety_mode @1160
db_delete_module @1161
+??0CCtrlSpin@@QAE@ABV0@@Z @1162 NONAME
+??0CCtrlSpin@@QAE@PAVCDlgBase@@H@Z @1163 NONAME
+??1CCtrlSpin@@UAE@XZ @1164 NONAME
+??4CCtrlSpin@@QAEAAV0@ABV0@@Z @1165 NONAME
+??_7CCtrlSpin@@6B@ @1166 NONAME
+?SetMaxLength@CCtrlEdit@@QAEXI@Z @1167 NONAME
+?SetRange@CCtrlSpin@@QAEXFF@Z @1168 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 6e493bb0e9..131140dff2 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1002,3 +1002,10 @@ db_get_contact_count @1158 db_is_contact @1159
db_set_safety_mode @1160
db_delete_module @1161
+??0CCtrlSpin@@QEAA@AEBV0@@Z @1162 NONAME
+??0CCtrlSpin@@QEAA@PEAVCDlgBase@@H@Z @1163 NONAME
+??1CCtrlSpin@@UEAA@XZ @1164 NONAME
+??4CCtrlSpin@@QEAAAEAV0@AEBV0@@Z @1165 NONAME
+??_7CCtrlSpin@@6B@ @1166 NONAME
+?SetMaxLength@CCtrlEdit@@QEAAXI@Z @1167 NONAME
+?SetRange@CCtrlSpin@@QEAAXFF@Z @1168 NONAME
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 0d479dac63..7c354bad0a 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -597,6 +597,23 @@ void CCtrlEdit::OnReset() SetInt(LoadInt());
}
+void CCtrlEdit::SetMaxLength(unsigned int len)
+{
+ SendMsg(EM_SETLIMITTEXT, len, 0);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// CCtrlSpin class
+
+CCtrlSpin::CCtrlSpin(CDlgBase* dlg, int ctrlId)
+ : CCtrlBase(dlg, ctrlId)
+{}
+
+void CCtrlSpin::SetRange(short min, short max)
+{
+ SendMsg(UDM_SETRANGE, 0, MAKELONG(min, max));
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// CCtrlData class
|