comctl32: toolbar: create tooltip window with WS_POPUP style
Oleg Krylov
oleg.krylov at gmail.com
Wed Oct 18 07:58:28 CDT 2006
Toolbar tooltips can sometimes steal focus from application window (I
think it's window manager issue, I experience it on Metacity). Creating
tooltip control with WS_POPUP style prevents it. Native toolbar control
uses same style for toolbar tooltips.
Changelog:
- Create tooltip window with WS_POPUP style
Author: Oleg Krylov
License: LGPL
-------------- next part --------------
>From d52adc05393ee648444c9099201b5c3071ea2181 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 da41486..806fa97 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