diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-25 22:05:38 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-25 22:05:38 +0200 |
commit | 5d651e838c864347fc6a6276d637e4008dafd764 (patch) | |
tree | 1231ff35322a96e54aaf924b3f1926255b24ed52 | |
parent | a31fe673e91b64f994dc84f6ff9a9640b9306b60 (diff) |
unused WM_GETMINMAXINFO handlers moved to the container
-rw-r--r-- | src/core/stdmsg/src/chat_window.cpp | 11 | ||||
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 10 | ||||
-rw-r--r-- | src/core/stdmsg/src/tabs.cpp | 8 |
3 files changed, 8 insertions, 21 deletions
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; |