From 51a7e46bc6411ca24ab6f918ab373cf47ab488b1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 29 Oct 2007 15:27:40 +0000 Subject: [PATCH] define TTF_TRANSPARENT if it's absent from SDK headers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/tooltip.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 7f3ec121d8..4728604cdb 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -41,6 +41,10 @@ #define TTTOOLINFO_V1_SIZE 0x28 #endif +#ifndef TTF_TRANSPARENT + #define TTF_TRANSPARENT 0x0100 +#endif + // VZ: normally, the trick with subclassing the tooltip control and processing // TTM_WINDOWFROMPOINT should work but, somehow, it doesn't. I leave the // code here for now (but it's not compiled) in case we need it later. @@ -97,12 +101,11 @@ public: // then as the control gets "focus lost" events and dismisses the // tooltip which then reappears because mouse remains hovering over the // control, see SF patch 1821229 -#ifndef __DMC__ if ( wxApp::GetComCtl32Version() >= 470 ) { uFlags |= TTF_TRANSPARENT; } -#endif + uId = (UINT)hwndOwner; } };