diff options
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);
|