From 95122931c6c02b93317f532dac8b7f6de4ab1cd8 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Thu, 21 May 2015 19:01:22 +0200 Subject: [PATCH] Don't create the tooltips as topmost, and don't position them as topmost either but only as top Based on TortoiseSVN revision 26523. Signed-off-by: Sven Strickroth --- src/TortoiseIDiff/PicWindow.cpp | 4 ++-- src/Utils/MiscUI/HistoryCombo.cpp | 2 +- src/Utils/MiscUI/ScrollTool.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TortoiseIDiff/PicWindow.cpp b/src/TortoiseIDiff/PicWindow.cpp index d91c563c7..e14fbcd60 100644 --- a/src/TortoiseIDiff/PicWindow.cpp +++ b/src/TortoiseIDiff/PicWindow.cpp @@ -88,7 +88,7 @@ LRESULT CALLBACK CPicWindow::WinMsgHandler(HWND hwnd, UINT uMsg, WPARAM wParam, TOOLINFO ti; RECT rect; // for client area coordinates - hwndTT = CreateWindowEx(WS_EX_TOPMOST, + hwndTT = CreateWindowEx(NULL, TOOLTIPS_CLASS, NULL, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP, @@ -103,7 +103,7 @@ LRESULT CALLBACK CPicWindow::WinMsgHandler(HWND hwnd, UINT uMsg, WPARAM wParam, ); SetWindowPos(hwndTT, - HWND_TOPMOST, + HWND_TOP, 0, 0, 0, diff --git a/src/Utils/MiscUI/HistoryCombo.cpp b/src/Utils/MiscUI/HistoryCombo.cpp index f6f4dc83b..49380e178 100644 --- a/src/Utils/MiscUI/HistoryCombo.cpp +++ b/src/Utils/MiscUI/HistoryCombo.cpp @@ -594,7 +594,7 @@ void CHistoryCombo::OnTimer(UINT_PTR nIDEvent) void CHistoryCombo::CreateToolTip() { // create tooltip - m_hWndToolTip = ::CreateWindowEx(WS_EX_TOPMOST, + m_hWndToolTip = ::CreateWindowEx(NULL, TOOLTIPS_CLASS, NULL, TTS_NOPREFIX | TTS_ALWAYSTIP, diff --git a/src/Utils/MiscUI/ScrollTool.cpp b/src/Utils/MiscUI/ScrollTool.cpp index d8134c24a..f695581a2 100644 --- a/src/Utils/MiscUI/ScrollTool.cpp +++ b/src/Utils/MiscUI/ScrollTool.cpp @@ -41,7 +41,7 @@ bool CScrollTool::Init(LPPOINT pos, bool bRightAligned /* = false */) if (!m_bInitCalled) { // create the tooltip window - if (!CreateEx(WS_EX_TOPMOST, + if (!CreateEx(NULL, TOOLTIPS_CLASS, NULL, TTS_NOPREFIX | TTS_ALWAYSTIP, -- 2.11.4.GIT