diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-14 19:47:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-14 19:47:48 +0000 |
commit | c36bbbff769462948278fddcaa4713a1ab21361d (patch) | |
tree | 18731ab2685e72f0e72487308bec578debab7911 /src | |
parent | 3db0313f338d25593eeda9d60dd7b3c2f15394eb (diff) |
patch for UI Utils:
- wrapper for a spin control;
- CCtrlEdit::SetMaxLength
git-svn-id: http://svn.miranda-ng.org/main/trunk@17298 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-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 |
3 files changed, 31 insertions, 0 deletions
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
|