From 720d774bfc0aa7941d1493a63291352f223aa61e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 May 2024 14:07:01 +0300 Subject: CSplitter: fix to avoid problems caused by WM_SIZE optimization --- plugins/TabSRMM/src/msgdlgother.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/TabSRMM/src/msgdlgother.cpp') diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index a296b2f32b..61ecf25175 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -1355,7 +1355,7 @@ void CMsgDialog::LoadContactAvatar() if (!m_pPanel.isActive() || m_pContainer->cfg.avatarMode == 3) { m_iRealAvatarHeight = 0; - OnResize(); + Resize(); } else if (m_pPanel.isActive()) GetAvatarVisibility(); @@ -1385,7 +1385,7 @@ void CMsgDialog::LoadOwnAvatar() BITMAP bm; GetObject(m_hOwnPic, sizeof(bm), &bm); if (CalcDynamicAvatarSize(&bm)) - OnResize(); + Resize(); } } @@ -1703,7 +1703,7 @@ int CMsgDialog::MsgWindowMenuHandler(int selection, int menuId) } ShowPicture(false); - OnResize(); + Resize(); DM_ScrollToBottom(0, 1); return 1; @@ -2059,7 +2059,7 @@ void CMsgDialog::ShowPicture(bool showNewPic) if (!m_hwndPanelPic) { InvalidateRect(m_hwnd, nullptr, TRUE); UpdateWindow(m_hwnd); - OnResize(); + Resize(); } return; } @@ -2077,7 +2077,7 @@ void CMsgDialog::ShowPicture(bool showNewPic) if (!showNewPic) SetDialogToType(); else - OnResize(); + Resize(); } ///////////////////////////////////////////////////////////////////////////////////////// @@ -2167,7 +2167,7 @@ void CMsgDialog::ShowPopupMenu(const CCtrlBase &pCtrl, POINT pt) PluginConfig.m_visualMessageSizeIndicator = !PluginConfig.m_visualMessageSizeIndicator; db_set_b(0, SRMSGMOD_T, "msgsizebar", (uint8_t)PluginConfig.m_visualMessageSizeIndicator); Srmm_Broadcast(DM_CONFIGURETOOLBAR, 0, 0); - OnResize(); + Resize(); if (m_pContainer->m_hwndStatus) RedrawWindow(m_pContainer->m_hwndStatus, nullptr, nullptr, RDW_INVALIDATE | RDW_UPDATENOW); break; @@ -2201,7 +2201,7 @@ void CMsgDialog::SplitterMoved(int coord, HWND hwnd) if (m_iMultiSplit > ((rc.right - rc.left) - 80)) m_iMultiSplit = oldSplitterX; } - OnResize(); + Resize(); break; case IDC_SPLITTERX: @@ -2216,7 +2216,7 @@ void CMsgDialog::SplitterMoved(int coord, HWND hwnd) iSplitterX = rc.right - rc.left - 35; m_pContainer->cfg.iSplitterX = iSplitterX; } - OnResize(); + Resize(); break; case IDC_SPLITTERY: @@ -2253,7 +2253,7 @@ void CMsgDialog::SplitterMoved(int coord, HWND hwnd) } } UpdateToolbarBG(); - OnResize(); + Resize(); break; case IDC_PANELSPLITTER: -- cgit v1.2.3