Incorrect type (narrowing) for tool ID in tooltips
Brought to you by:
nenadstefanovic
nIDTool/nTool parameters used in CToolTipCtrlT/CToolInfo are defined as UINT, however this parameter can hold HWND, and thus it is defined as UINT_PTR in Windows SDK. WTL wrappers should be updated from UINT to UINT_PTR as well.
Anonymous
patch attached
P.S. TooltipCtrlT.SetTitle should also have UINT_PTR for nIcon parameter, otherwise HICON won't get through on Win64.
Thanks for reporting this, and your patch. Fixed as proposed.
atlctrls.h, rev 624