comctl32: statusbar: create tooltip window with WS_POPUP and TTS_ALWAYSTIP style

Oleg Krylov oleg.krylov at gmail.com
Wed Oct 25 05:29:19 CDT 2006


Prevent tooltips from stealing focus from parent window by crating them 
with WS_POPUP style. Also apply TTS_ALWAYSTIP style as native does to 
show tips also when window is inactive.

Changelog:
- Create tooltip window with WS_POPUP style
Author: Oleg Krylov
License: LGPL
-------------- next part --------------
>From 3afbb59d3f0d4dd2cd3948caf81d51ae650821b9 Mon Sep 17 00:00:00 2001
From: Oleg Krylov <oleg.krylov at gmail.com>
Date: Wed, 25 Oct 2006 12:33:25 +0300
Subject: comctrl32: statusbar: create tooltip window with WS_POPUP and TTS_ALWAYSTIP style

---
 dlls/comctl32/status.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c
index 5e8f833..e2fb704 100644
--- a/dlls/comctl32/status.c
+++ b/dlls/comctl32/status.c
@@ -992,7 +992,7 @@ STATUSBAR_WMCreate (HWND hwnd, LPCREATES
 
     if (dwStyle & SBT_TOOLTIPS) {
 	infoPtr->hwndToolTip =
-	    CreateWindowExW (0, TOOLTIPS_CLASSW, NULL, 0,
+	    CreateWindowExW (0, TOOLTIPS_CLASSW, NULL, WS_POPUP | TTS_ALWAYSTIP,
 			     CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
 			     CW_USEDEFAULT, hwnd, 0,
 			     (HINSTANCE)GetWindowLongPtrW(hwnd, GWLP_HINSTANCE), NULL);
-- 
1.4.2.3



More information about the wine-patches mailing list