diff options
author | George Hazan <ghazan@miranda.im> | 2017-04-03 23:52:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-04-03 23:52:09 +0300 |
commit | 7f513673b523ecfbf6ded0a2d0e5cdf5496bd6b0 (patch) | |
tree | 676bd7211644596d2faf9e95cb0acf7f1f2cb7ee /src/mir_app | |
parent | 62cb48be341f443dbe356d37fb6d708167898ded (diff) |
- SRMM window list management moved to the base class;
- fixes #791
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 3c737fd772..62d744f540 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -577,6 +577,9 @@ LRESULT CSrmmBaseDialog::WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam void CSrmmBaseDialog::OnInitDialog() { + WindowList_Add(chatApi.hWindowList, m_hwnd, m_hContact); + SetWindowLongPtr(m_hwnd, GWLP_USERDATA, (LONG_PTR)this); + SetWindowLongPtr(m_log.GetHwnd(), GWLP_USERDATA, LPARAM(this)); mir_subclassWindow(m_log.GetHwnd(), stubLogProc); @@ -595,6 +598,8 @@ void CSrmmBaseDialog::OnInitDialog() void CSrmmBaseDialog::OnDestroy() { + WindowList_Remove(chatApi.hWindowList, m_hwnd); + SetWindowLongPtr(m_hwnd, GWLP_USERDATA, 0); mir_unsubclassWindow(m_log.GetHwnd(), stubLogProc); mir_unsubclassWindow(m_message.GetHwnd(), stubMessageProc); |