X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3be7ca64128205789e0b469c2c9fc1df8732a93b..4081eb6fe2de5eed5716459d09c8f4bed8eda92d:/src/msw/tooltip.cpp diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 909352209d..dd3fdd076b 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -105,7 +105,7 @@ public: uFlags |= TTF_TRANSPARENT; } - uId = (UINT)hwndOwner; + uId = (UINT_PTR)hwndOwner; } }; @@ -374,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