summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgother.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-15 19:59:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-15 19:59:12 +0300
commit942375f9541adc8553c9868322e6757b8da704d7 (patch)
treeb9855cec0e155009adfec09a5ebe8241c3732ffb /plugins/TabSRMM/src/msgdlgother.cpp
parent26f471496af2a42967ed322e9b52a93fba553e14 (diff)
code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgother.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index 77e6e612ea..c0cddd023b 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -670,18 +670,6 @@ void CMsgDialog::GetClientIcon()
/////////////////////////////////////////////////////////////////////////////////////////
-LONG CMsgDialog::GetDefaultMinimumInputHeight() const
-{
- LONG height = (m_pContainer->m_dwFlags & CNT_BOTTOMTOOLBAR) ? DPISCALEY_S(46 + 22) : DPISCALEY_S(46);
-
- if (CSkin::m_skinEnabled && !SkinItems[ID_EXTBKINPUTAREA].IGNORED)
- height += (SkinItems[ID_EXTBKINPUTAREA].MARGIN_BOTTOM + SkinItems[ID_EXTBKINPUTAREA].MARGIN_TOP - 2);
-
- return height;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
HICON CMsgDialog::GetMyContactIcon(LPCSTR szSetting)
{
int bUseMeta = (szSetting == nullptr) ? false : M.GetByte(szSetting, mir_strcmp(szSetting, "MetaiconTab") == 0);
@@ -854,7 +842,10 @@ void CMsgDialog::LoadSettings()
void CMsgDialog::LoadSplitter()
{
if (m_bIsAutosizingInput) {
- m_iSplitterY = GetDefaultMinimumInputHeight();
+ m_iSplitterY = (m_pContainer->m_dwFlags & CNT_BOTTOMTOOLBAR) ? DPISCALEY_S(46 + 22) : DPISCALEY_S(46);
+
+ if (CSkin::m_skinEnabled && !SkinItems[ID_EXTBKINPUTAREA].IGNORED)
+ m_iSplitterY += (SkinItems[ID_EXTBKINPUTAREA].MARGIN_BOTTOM + SkinItems[ID_EXTBKINPUTAREA].MARGIN_TOP - 2);
return;
}