Tooltip extended window style bit

Ori Pessach ori_pessach_blah at yahoo.com
Tue Feb 5 17:35:06 CST 2002


This patch sets WS_EX_TOOLWINDOW in a tooltip's dwExStyle. Windows does this, 
at least according to the MSDN documentation.

-Ori Pessach



Index: tooltips.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tooltips.c,v
retrieving revision 1.40
diff -u -r1.40 tooltips.c
--- tooltips.c  2002/01/04 21:27:34     1.40
+++ tooltips.c  2002/02/05 21:37:50
@@ -2114,10 +2114,14 @@
 TOOLTIPS_NCCreate (HWND hwnd, WPARAM wParam, LPARAM lParam)
 {
     DWORD dwStyle = GetWindowLongA (hwnd, GWL_STYLE);
+    DWORD dwExStyle = GetWindowLongA (hwnd, GWL_EXSTYLE);

     dwStyle &= 0x0000FFFF;
     dwStyle |= (WS_POPUP | WS_BORDER | WS_CLIPSIBLINGS);
     SetWindowLongA (hwnd, GWL_STYLE, dwStyle);
+
+    dwExStyle |= WS_EX_TOOLWINDOW;
+    SetWindowLongA (hwnd, GWL_EXSTYLE, dwExStyle);

     return TRUE;
 }

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the wine-patches mailing list