because
SetMaxTipWidth
is not a static method
You'll have to call that method on the
CToolTipCtrl
object you have created/attached to; if you haven't got one because you're using WTL, just send the
TTM_SETMAXTIPWIDTH[
^] message to the control, using
CWindow(<your control's HWND here>).SendMessage(TTM_SETMAXTIPWIDTH,0,-1)
or similar