secci贸n de c贸digo, el preview se muestra increiblemente mejor!
Os agradezco vuestras pruebas y comentarios, gracias!
METHOD Paint() CLASS TMetaFile
聽 聽local nVStep, nHStep
聽 聽if ::hMeta == 0
聽 聽 聽 if File( ::cCaption )
聽 聽 聽 聽 聽::hMeta = GetEnhMetaFile( ::cCaption )
聽 聽 聽 elseif ! Empty( ::cCaption )
聽 聽 聽 聽 聽Alert( "Could not find the Metafile," + CRLF + "please check your TEMP environment variable" )
聽 聽 聽 endif
聽 聽endif
聽 聽if ::hMeta != 0
聽 聽 聽 聽 ::Shadow()
聽 聽 聽 聽 SetMapMode( ::hDC, MM_ANISOTROPIC )
聽 聽 聽 聽 /*
聽 聽 聽 聽 SetWindowExt( ::hDC, 100, 100 )
聽 聽 聽 聽 if ::nVRatio == nil
聽 聽 聽 聽 聽 聽::SetCoors()
聽 聽 聽 聽 endif 聽
聽 聽 聽 聽 SetViewportExt( ::hDC, 100 * ::nXZoom, 100 * ( ::nYZoom / 2 ) * ::nVRatio * ::nWidth() / ::nHeight() )
聽 聽 聽 聽 nHStep = ( ::nWidth() * ( ::nXZoom - 1 ) ) / 9.8
聽 聽 聽 聽 nVStep = ( ( ::nWidth() * ::nXZoom * ::nVRatio ) - ::nHeight() ) / 10.3
聽 聽 聽 聽 SetViewOrg( ::hDC, -::nXorig * nHStep, -::nYorig * nVStep )
聽 聽 聽 聽 */
聽 聽 聽 聽 聽 聽 聽
聽 聽 聽 聽 PlayEnhMetaFile( ::hDC, ::hMeta, ::hWnd, .f. )
聽 聽endif
return nil

