B
BaKuBaKu
Unregistered / Unconfirmed
GUEST, unregistred user!
To Jinbo, 原因是没有恢复映像模式,应该这样做:<br>var<br> OldWindowExtent, OldViewPortExtent: TSize;<br> OldMapMode: Integer;<br>begin<br> OldMapMode := SetMapMode(Handle, MM_ANISOTROPIC);<br> SetWindowExtEx(Handle,100,100,@OldWindowExtent);<br> SetViewPortExtEx(Handle, NewZoom, NewZoom, @OldViewPortExtent);<br> // 执行自定义绘画过程<br> ...<br> // 恢复映像模式<br> SetViewPortExtEx(Handle,OldViewPortExtent.cx,OldViewPortExtent.cy,nil);<br> SetWindowExtEx(Handle,OldWindowExtent.cx,OldWindowExtent.cy,nil);<br> SetMapMode(Handle, OldMapMode);<br>end;<br><br>See it ?<br> From: BaKuBaKu