爱
爱上猫的鱼
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure viewInfo(s: string);var vr: TRect; aCanvas: TCanvas; DC: HDC;begin try if Length(s)>1024 then Exit; if isdebug1 or isDebug then begin DC := GetDC(0); // 得到桌面的设备环境句柄, aCanvas := TCanvas.Create; aCanvas.Handle := DC; aCanvas.TextOut(0, 0, s); aCanvas.Free; if mainHDW <> 0 then Postmessage(mainHDW, MyWM_ViewInfo, Longint(s), Length(s)); end; except end;end;