summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 2a6f19486b..6cee6c70b6 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -147,7 +147,7 @@ void CMsgDialog::SetDialogToType()
EnableSendButton(GetWindowTextLength(m_message.GetHwnd()) != 0);
UpdateTitle();
- Resize();
+ OnResize();
Utils::enableDlgControl(m_hwnd, IDC_CONTACTPIC, false);
@@ -235,7 +235,7 @@ LRESULT CALLBACK SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
ReleaseCapture();
dat->DM_ScrollToBottom(0, 1);
if (!dat->isChat() && hwnd == GetDlgItem(hwndParent, IDC_PANELSPLITTER)) {
- SendMessage(hwndParent, WM_SIZE, 0, 0);
+ dat->OnResize();
RedrawWindow(hwndParent, nullptr, nullptr, RDW_ALLCHILDREN | RDW_INVALIDATE | RDW_UPDATENOW);
}
else if (hwnd == GetDlgItem(hwndParent, IDC_SPLITTERY)) {
@@ -298,7 +298,7 @@ LRESULT CALLBACK SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
dat->m_dynaSplitter = dat->m_savedDynaSplit;
dat->DM_RecalcPictureSize();
dat->UpdateToolbarBG();
- SendMessage(hwndParent, WM_SIZE, 0, 0);
+ dat->OnResize();
dat->DM_ScrollToBottom(0, 1);
break;
}
@@ -903,7 +903,7 @@ void CMsgDialog::onClick_Add(CCtrlButton*)
ShowMultipleControls(m_hwnd, addControls, _countof(addControls), SW_HIDE);
if (!m_bScrollingDisabled)
Utils::showDlgControl(m_hwnd, IDC_LOGFROZENTEXT, SW_HIDE);
- Resize();
+ OnResize();
}
}
@@ -950,7 +950,7 @@ void CMsgDialog::onClick_CancelAdd(CCtrlButton*)
ShowMultipleControls(m_hwnd, addControls, _countof(addControls), SW_HIDE);
if (!m_bScrollingDisabled)
Utils::showDlgControl(m_hwnd, IDC_LOGFROZENTEXT, SW_HIDE);
- Resize();
+ OnResize();
}
void CMsgDialog::onClick_Filter(CCtrlButton *pButton)
@@ -976,7 +976,7 @@ void CMsgDialog::onClick_ShowNickList(CCtrlButton *pButton)
m_bNicklistEnabled = !m_bNicklistEnabled;
- Resize();
+ OnResize();
if (CSkin::m_skinEnabled)
InvalidateRect(m_hwnd, nullptr, TRUE);
m_pLog->ScrollToBottom();
@@ -1546,7 +1546,7 @@ int CMsgDialog::OnFilter(MSGFILTER *pFilter)
HWND hwndEdit = m_message.GetHwnd();
SetWindowPos(hwndEdit, nullptr, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE);
- Resize();
+ OnResize();
RedrawWindow(hwndEdit, nullptr, nullptr, RDW_INVALIDATE | RDW_FRAME | RDW_UPDATENOW | RDW_ERASE);
DM_ScrollToBottom(0, 0);
Utils::showDlgControl(m_hwnd, IDC_MULTISPLITTER, (m_sendMode & SMODE_MULTIPLE) ? SW_SHOW : SW_HIDE);
@@ -1646,7 +1646,7 @@ int CMsgDialog::OnFilter(MSGFILTER *pFilter)
SetDlgItemText(m_hwnd, IDC_LOGFROZENTEXT, TranslateT("Contact not on list. You may add it..."));
else
SetDlgItemText(m_hwnd, IDC_LOGFROZENTEXT, TranslateT("Auto scrolling is disabled (press F12 to enable it)"));
- Resize();
+ OnResize();
DM_ScrollToBottom(1, 1);
return _dlgReturn(m_hwnd, 1);
}
@@ -2315,7 +2315,7 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
GetSendFormat();
SetDialogToType();
DM_RecalcPictureSize();
- Resize();
+ OnResize();
DM_ScrollToBottom(0, 1);
}
return 0;
@@ -2364,7 +2364,7 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
case DM_UPDATEPICLAYOUT:
if (wParam == 0 || wParam == m_hContact) {
LoadContactAvatar();
- Resize();
+ OnResize();
}
return 0;
@@ -2429,7 +2429,7 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
MoveWindow(m_hwnd, rcClient.left, rcClient.top, (rcClient.right - rcClient.left), (rcClient.bottom - rcClient.top), TRUE);
if (m_bWasBackgroundCreate) {
m_bWasBackgroundCreate = false;
- Resize();
+ OnResize();
PostMessage(m_hwnd, DM_UPDATEPICLAYOUT, 0, 0);
SetFocus(m_message.GetHwnd());
@@ -2437,7 +2437,7 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
m_pContainer->m_pSideBar->moveButtons();
}
else {
- Resize();
+ OnResize();
if (lParam == 0)
DM_ScrollToBottom(0, 1);
}
@@ -2730,7 +2730,7 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
m_pPanel.setHeight((LONG)lParam);
}
}
- Resize();
+ OnResize();
}
return 0;