comctl32: create tooltip window with WS_POPUP style

Oleg Krylov oleg.krylov at gmail.com
Wed Oct 25 05:31:44 CDT 2006


Prevent tooltips from stealing focus from parent window by crating them 
with WS_POPUP style.
This patch affects common tooltip creation code used by treeview and 
listview controls.

Changelog:
- Create tooltip window with WS_POPUP style
Author: Oleg Krylov
License: LGPL
-------------- next part --------------
>From eca45f7a4648d459228fb41663f21efdcfc08501 Mon Sep 17 00:00:00 2001
From: Oleg Krylov <oleg.krylov at gmail.com>
Date: Wed, 25 Oct 2006 12:38:54 +0300
Subject: comctl32: create tooltip window with WS_POPUP style

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

diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c
index 2925cc2..2f08f75 100644
--- a/dlls/comctl32/commctrl.c
+++ b/dlls/comctl32/commctrl.c
@@ -1336,7 +1336,7 @@ COMCTL32_CreateToolTip(HWND hwndOwner)
 {
     HWND hwndToolTip;
 
-    hwndToolTip = CreateWindowExW(0, TOOLTIPS_CLASSW, NULL, 0,
+    hwndToolTip = CreateWindowExW(0, TOOLTIPS_CLASSW, NULL, WS_POPUP,
 				  CW_USEDEFAULT, CW_USEDEFAULT,
 				  CW_USEDEFAULT, CW_USEDEFAULT, hwndOwner,
 				  0, 0, 0);
-- 
1.4.2.3



More information about the wine-patches mailing list