From 0edfbcc3fd42701475505e6ac7cf6a153bc1e25a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Nov 2016 14:46:15 +0300 Subject: OnBuildMenu - new callback for handling rclicks --- include/m_gui.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_gui.h b/include/m_gui.h index 0f3f161b60..eabf1040a6 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -440,7 +440,8 @@ private: LIST m_controls; void NotifyControls(void (CCtrlBase::*fn)()); - CCtrlBase *FindControl(int idCtrl); + CCtrlBase* FindControl(int idCtrl); + CCtrlBase* FindControl(HWND hwnd); CTimer* FindTimer(int idEvent); @@ -479,6 +480,8 @@ class MIR_CORE_EXPORT CCtrlBase { friend class CDlgBase; + __forceinline CCtrlBase(HWND hwnd) : m_hwnd(hwnd) {} + public: CCtrlBase(CDlgBase *wnd, int idCtrl); virtual ~CCtrlBase() { } @@ -530,6 +533,7 @@ protected: public: CCallback OnChange; + CCallback OnBuildMenu; protected: virtual LRESULT CustomWndProc(UINT msg, WPARAM wParam, LPARAM lParam); -- cgit v1.2.3