diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-03 18:08:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-03 18:08:16 +0300 |
commit | 1be16f1566b862629878a2d1a46063afeae78c38 (patch) | |
tree | 3717a30de15c1f3ae5e9326f80e799840db77c29 /include/m_gui.h | |
parent | f4f859003e2d17ab6d457e552ccdde775899b328 (diff) |
fix for the shitty idea of all pre-created button objects' manual initialization
Diffstat (limited to 'include/m_gui.h')
-rw-r--r-- | include/m_gui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index 67ea96ae4b..b1b30af2ae 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -396,6 +396,8 @@ public: __forceinline void SetParent(HWND hwnd) { m_hwndParent = hwnd; }
__forceinline void Close() { SendMessage(m_hwnd, WM_CLOSE, 0, 0); }
__forceinline void Fail() { m_lresult = false; }
+
+ __forceinline CCtrlBase* operator[](int iControlId) { return FindControl(iControlId); }
static CDlgBase* Find(HWND hwnd);
|