more /Wp64 warning fixes: mostly use UINT_PTR instead of UINT and define our WX[WL]PARAM with __w64 if available to avoid hundreds of warnings when casting LPARAMs to pointers/handles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user