谭
谭俊峰
Unregistered / Unconfirmed
GUEST, unregistred user!
var<br> Size: Byte;<br> TmpRect:TRect;<br> Flags : Word;<br> S:String;<br>begin<br> TmpRect.Left:=60;TmpRect.Top:=60;tmpRect.Right:=160;tmpRect.Bottom:=260;<br> Canvas.FillRect(TmpRect);<br> Flags := DT_NOCLIP or DT_VCENTER or DT_WORDBREAK; //?<br> S:='DDDDDDDDDDFFFFFFFFFFFFFFFFFFFFFFFFFF';<br> DrawText(Canvas.Handle, Pchar(S), Length(S), TmpRect, Flags);<br>//虽然设置了“DT_WORDBREAK”,但并没有自动换行,应该如何做?<br><br><br>