X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/613db75659ab129de0e583cdc6288ab9ded93f73..0ba6faaeeeec36fe4e6fc376f2f5edc1c0d34334:/src/msw/tooltip.cpp diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 2fec322012..dd3fdd076b 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -40,6 +40,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. @@ -101,7 +105,7 @@ public: uFlags |= TTF_TRANSPARENT; } - uId = (UINT)hwndOwner; + uId = (UINT_PTR)hwndOwner; } }; @@ -370,9 +374,12 @@ void wxToolTip::Add(WXHWND hWnd) } // only set a new width if it is bigger than the current setting - if (max > SendTooltipMessage(GetToolTipCtrl(), TTM_GETMAXTIPWIDTH, 0)) + if ( max > SendTooltipMessage(GetToolTipCtrl(), + TTM_GETMAXTIPWIDTH, 0) ) + { SendTooltipMessage(GetToolTipCtrl(), TTM_SETMAXTIPWIDTH, - (void *)max); + wxUIntToPtr(max)); + } } else #endif // comctl32.dll >= 4.70