From c36bbbff769462948278fddcaa4713a1ab21361d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Sep 2016 19:47:48 +0000 Subject: 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 --- include/m_gui.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') 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); }; ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3