comctl32: toolbar: create tooltip window with WS_POPUP style

Oleg Krylov oleg.krylov at gmail.com
Wed Oct 25 05:24:49 CDT 2006


Prevent tooltips from stealing focus from parent window by crating them 
with WS_POPUP style.

Changelog:
- Create tooltip window with WS_POPUP style
Author: Oleg Krylov
License: LGPL
-------------- next part --------------
>From 0c553a2dc792f78290de28e8c6e71c810540536d Mon Sep 17 00:00:00 2001
From: Oleg Krylov <oleg.krylov at gmail.com>
Date: Wed, 18 Oct 2006 15:39:34 +0300
Subject: comctl32: toolbar: create tooltip window with WS_POPUP style

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

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index fa3eee4..0cfe673 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -1950,7 +1950,7 @@ TOOLBAR_TooltipCreateControl(TOOLBAR_INF
     int i;
     NMTOOLTIPSCREATED nmttc;
 
-    infoPtr->hwndToolTip = CreateWindowExW(0, TOOLTIPS_CLASSW, NULL, 0,
+    infoPtr->hwndToolTip = CreateWindowExW(0, TOOLTIPS_CLASSW, NULL, WS_POPUP,
             CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
             infoPtr->hwndSelf, 0, 0, 0);
 
-- 
1.4.2.3



More information about the wine-patches mailing list