diff options
-rw-r--r-- | include/m_gui.h | 3 | ||||
-rw-r--r-- | src/mir_core/src/Windows/CDlgBase.cpp | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index ba3590b70d..b4e2c4a5d4 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -348,7 +348,8 @@ public: void SetDraw(bool bEnable); void NotifyChange(void); // sends a notification to a parent window - __forceinline HINSTANCE GetInst() const { return m_pPlugin.getInst(); } + HINSTANCE GetInst() const; + __forceinline HWND GetHwnd() const { return m_hwnd; } __forceinline void Hide() { Show(SW_HIDE); } __forceinline bool IsInitialized() const { return m_bInitialized; } diff --git a/src/mir_core/src/Windows/CDlgBase.cpp b/src/mir_core/src/Windows/CDlgBase.cpp index e46eb269f3..d6c798eb41 100644 --- a/src/mir_core/src/Windows/CDlgBase.cpp +++ b/src/mir_core/src/Windows/CDlgBase.cpp @@ -115,6 +115,11 @@ void CDlgBase::EndModal(INT_PTR nResult) ::EndDialog(m_hwnd, nResult); } +HINSTANCE CDlgBase::GetInst() const +{ + return m_pPlugin.getInst(); +} + void CDlgBase::NotifyChange(void) { if (!m_bInitialized) |