summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgother.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-05-01 14:07:01 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-05-01 14:07:01 +0300
commit720d774bfc0aa7941d1493a63291352f223aa61e (patch)
tree72e69d50f274695fcb95bca289b497190e6c78ab /plugins/TabSRMM/src/msgdlgother.cpp
parent8f1efe1635c9572771a2e9e319e52dd989c87f90 (diff)
CSplitter: fix to avoid problems caused by WM_SIZE optimization
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgother.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp18
1 files changed, 9 insertions, 9 deletions
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: