From 5d651e838c864347fc6a6276d637e4008dafd764 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 25 Apr 2018 22:05:38 +0200 Subject: unused WM_GETMINMAXINFO handlers moved to the container --- src/core/stdmsg/src/chat_window.cpp | 11 ----------- src/core/stdmsg/src/msgdialog.cpp | 10 ---------- src/core/stdmsg/src/tabs.cpp | 8 ++++++++ 3 files changed, 8 insertions(+), 21 deletions(-) (limited to 'src') diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp index 8ae395baff..2f5e77c79e 100644 --- a/src/core/stdmsg/src/chat_window.cpp +++ b/src/core/stdmsg/src/chat_window.cpp @@ -1187,17 +1187,6 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) } break; - case WM_GETMINMAXINFO: - { - MINMAXINFO *mmi = (MINMAXINFO*)lParam; - mmi->ptMinTrackSize.x = m_iSplitterX + 43; - if (mmi->ptMinTrackSize.x < 350) - mmi->ptMinTrackSize.x = 350; - - mmi->ptMinTrackSize.y = m_iSplitterY + 80; - } - break; - case WM_LBUTTONDBLCLK: if (LOWORD(lParam) < 30) ScrollToBottom(); diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 3a47ac9689..85ef7b2a55 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -1088,16 +1088,6 @@ INT_PTR CSrmmWindow::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) FlashWindow(m_pOwner->GetHwnd(), FALSE); break; - case WM_GETMINMAXINFO: - { - MINMAXINFO *mmi = (MINMAXINFO *)lParam; - if (mmi->ptMinTrackSize.x < 350) - mmi->ptMinTrackSize.x = 350; - - mmi->ptMinTrackSize.y = m_iSplitterY + 80; - } - return 0; - case WM_CBD_LOADICONS: Srmm_UpdateToolbarIcons(m_hwnd); break; diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index 1e240e1f44..bdeb30b15d 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -542,6 +542,14 @@ INT_PTR CTabbedWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) SaveWindowPosition(false); break; + case WM_GETMINMAXINFO: + { + MINMAXINFO *mmi = (MINMAXINFO*)lParam; + mmi->ptMinTrackSize.x = 450; + mmi->ptMinTrackSize.y = 350; + } + return 0; + case WM_DRAWITEM: { LPDRAWITEMSTRUCT dis = (LPDRAWITEMSTRUCT)lParam; -- cgit v1.2.3