diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-14 20:42:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-14 20:42:31 +0300 |
commit | a76c706113f6d9e1a1a253feab46051fb2e6ce12 (patch) | |
tree | 9ca792786b2d95300b6e4d0e61b5fdfb76034f2a /plugins/TabSRMM/src/msgs.cpp | |
parent | 0edc6006e17f896324d4011acdf5e16162572908 (diff) |
more common data moved into CTabBaseDlg
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 2df17da155..b082285657 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -123,7 +123,8 @@ CTabBaseDlg::CTabBaseDlg(int iResource, SESSION_INFO *si) m_log(this, IDC_LOG),
m_message(this, IDC_MESSAGE),
m_pPanel(this),
- m_dwFlags(MWF_INITMODE)
+ m_dwFlags(MWF_INITMODE),
+ m_iInputAreaHeight(-1)
{
m_pLog = &m_log;
m_pEntry = &m_message;
@@ -166,6 +167,13 @@ void CTabBaseDlg::OnInitDialog() // set up Windows themes
DM_ThemeChanged();
+
+ // refresh cache data for this contact
+ m_cache = CContactCache::getContactCache(m_hContact);
+ m_cache->updateNick();
+ m_cache->updateUIN();
+
+ m_bIsAutosizingInput = IsAutoSplitEnabled();
}
INT_PTR CTabBaseDlg::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
|