diff options
author | aunsane <aunsane@gmail.com> | 2018-02-24 00:03:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-23 23:19:23 +0200 |
commit | 3f343c22a352462660a71806303c1f8957a85702 (patch) | |
tree | d055089c06c6d8b3e9baa74c29ef9f0e73759d10 /include/m_gui.h | |
parent | 055600d34539311ec30746b0e7bb9c66030da779 (diff) |
core: gui
- new method IsChecked for CCtrlCheck
- new methods GetUrl and SetUrl for CCtrlHypelink
- new event OnClick for CCtrlHypelink
- CCtrlSpin inherits from CCtrlData
Diffstat (limited to 'include/m_gui.h')
-rw-r--r-- | include/m_gui.h | 14 |
1 files changed, 13 insertions, 1 deletions
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<CCtrlHyperlink> 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);
|