更新时间:2023-02-05 22:33:08
,因为SetMaxTipWidth
不是静态方法
您必须在已创建/附加到的CToolTipCtrl
对象上调用该方法;如果因为使用WTL而没有得到,请发送 ^ ]消息,使用CWindow(<your control''s HWND here>).SendMessage(TTM_SETMAXTIPWIDTH,0,-1)
或类似的
becauseSetMaxTipWidth
is not a static method
You''ll have to call that method on theCToolTipCtrl
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, usingCWindow(<your control''s HWND here>).SendMessage(TTM_SETMAXTIPWIDTH,0,-1)
or similar