vfp9中两种绘图不知为什么不能合绘?
GDI绘图SET PATH TO TO HOME()+'FFC' HOME()+'FFC'
loLineColor=NEWOBJECT("GpColor","_GDIPlus.vcx")
loLineColor.Set(0,0,255)
loPen=NEWOBJECT("GpPen","_GDIPlus.vcx")
loPen.Create(loLineColor,8)
loGr=NEWOBJECT("gpGraphics","_GDIPlus.vcx")
loGr.CreateFromHWND(thisform.HWnd)
loGr.DrawEllipse(loPen,0,0,thisform.Width,thisform.Height)
loLineColor.set(0,255,0)
loBrush=NEWOBJECT("gpSolidBrush","_GDIPlus.vcx")
loBrush.Create(loLineColor)
loGr.FillEllipse(loBrush,10,10,thisform.Width-20,thisform.Height-20)
loLineColor.set(255,255,0)
loPen.Create(loLineColor,10)
loGr.drawarc(lopen,thisform.Width/2-200,thisform.Height/2-200,400,400,-45,-180)
一般绘图 thisform.Line(0,0,300,300)
一般绘图会清除GDI绘图,无法混合使用