且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

所以我以为我会制作我的ToolTips Multi Line,.....

更新时间:2023-02-05 22:33:08

,因为SetMaxTipWidth不是静态方法

您必须在已创建/附加到的CToolTipCtrl对象上调用该方法;如果因为使用WTL而没有得到,请发送 ^ ]消息,使用CWindow(<your control''s HWND here>).SendMessage(TTM_SETMAXTIPWIDTH,0,-1)或类似的
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