From 3f343c22a352462660a71806303c1f8957a85702 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 24 Feb 2018 00:03:19 +0300 Subject: core: gui - new method IsChecked for CCtrlCheck - new methods GetUrl and SetUrl for CCtrlHypelink - new event OnClick for CCtrlHypelink - CCtrlSpin inherits from CCtrlData --- include/m_gui.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/m_gui.h') diff --git a/include/m_gui.h b/include/m_gui.h index e4c7c40ed3..45b6130122 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -648,8 +648,15 @@ public: virtual BOOL OnCommand(HWND hwndCtrl, WORD idCtrl, WORD idCode) override; + CCallback OnClick; + + void SetUrl(const char *url); + const char *GetUrl(); + protected: const char* m_url; + + void Default_OnClick(CCtrlHyperlink*); }; ///////////////////////////////////////////////////////////////////////////////////////// @@ -793,6 +800,8 @@ public: int GetState(); void SetState(int state); + + bool IsChecked(); }; ///////////////////////////////////////////////////////////////////////////////////////// @@ -840,7 +849,7 @@ public: ///////////////////////////////////////////////////////////////////////////////////////// // CCtrlSpin -class MIR_CORE_EXPORT CCtrlSpin : public CCtrlBase +class MIR_CORE_EXPORT CCtrlSpin : public CCtrlData { typedef CCtrlData CSuper; @@ -849,6 +858,9 @@ class MIR_CORE_EXPORT CCtrlSpin : public CCtrlBase public: CCtrlSpin(CDlgBase *dlg, int ctrlId); + virtual void OnApply() override; + virtual void OnReset() override; + WORD GetPosition(); void SetPosition(WORD pos); void SetRange(WORD max, WORD min = 0); -- cgit v1.2.3