summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp3
-rw-r--r--plugins/TabSRMM/src/infopanel.cpp6
2 files changed, 4 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index e821f544ff..776cc20cec 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -142,7 +142,8 @@ void TSAPI DM_InitTip(TWindowData *dat)
dat->ti.hwnd = dat->hwnd;
dat->ti.uFlags = TTF_TRACK | TTF_IDISHWND | TTF_TRANSPARENT;
dat->ti.uId = (UINT_PTR)dat->hwnd;
- SendMessageA(dat->hwndTip, TTM_ADDTOOLA, 0, (LPARAM)&dat->ti);
+ SendMessage(dat->hwndTip, TTM_ADDTOOL, 0, (LPARAM)&dat->ti);
+
SetWindowPos(dat->hwndTip, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER);
}
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);
}