summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/infopanel.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-17 12:24:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-17 12:24:10 +0000
commit2949a73e42cce15b5a4757a793e509c169180276 (patch)
tree5cc341ccd298413d710fecfd852a7d022498a51e /plugins/TabSRMM/src/infopanel.cpp
parent2e7b7142eb20da9ec1e6a6c6dbf7ddd02510f27d (diff)
fix for some quirks in tabs
git-svn-id: http://svn.miranda-ng.org/main/trunk@8648 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/infopanel.cpp')
-rw-r--r--plugins/TabSRMM/src/infopanel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp
index c1dac25621..a160beeb24 100644
--- a/plugins/TabSRMM/src/infopanel.cpp
+++ b/plugins/TabSRMM/src/infopanel.cpp
@@ -954,7 +954,7 @@ void CInfoPanel::showTip(UINT ctrlId, const LPARAM lParam)
}
POINT pt;
- RECT rc = {0, 0, 400, 600};
+ RECT rc = {0, 0, 400, 600};
GetCursorPos(&pt);
m_tip = new CTip(m_dat->hwnd, m_dat->hContact, str->c_str(), this);
delete str;
@@ -962,12 +962,10 @@ void CInfoPanel::showTip(UINT ctrlId, const LPARAM lParam)
return;
}
- TCHAR szTitle[256];
- mir_sntprintf(szTitle, SIZEOF(szTitle), TranslateT("TabSRMM Information"));
::SendMessage(m_dat->hwndTip, TTM_UPDATETIPTEXT, 0, (LPARAM)&m_dat->ti);
::SendMessage(m_dat->hwndTip, TTM_SETMAXTIPWIDTH, 0, 350);
- ::SendMessage(m_dat->hwndTip, TTM_SETTITLE, 1, (LPARAM)szTitle);
+ ::SendMessage(m_dat->hwndTip, TTM_SETTITLE, 1, (LPARAM)TranslateT("TabSRMM Information"));
::SendMessage(m_dat->hwndTip, TTM_TRACKACTIVATE, TRUE, (LPARAM)&m_dat->ti);
::GetCursorPos(&m_dat->ptTipActivation);
}