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; } };