--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
> You may want to look into setstretchbltmode(HALFTONE) to improve look.

OK, I'll experiment it. Thanks.

> Also Release DCs after drawing.

Oops, I omitted them. I was in a rush.

----------------------------------------------------------------------
local mag,hWnd,hDC_Bar,hDC_Dsk

mag=cl.create("Magnifier",1)

mag.NewProperties("Position: FixedTopLeft ;;+
Height: 98 FlatFlat SameSize BarSize TopMost")
mag.insert(0).SetWidth(98)

bar.show("Magnifier")

hWnd=win.handle("Magnifier")
hDC_Bar=dll.call("GetDC|ui",hWnd)
hDC_Dsk=dll.call("GetDC|ui",0)

for(!ctrl)
dll.call("StretchBlt|ui i i i i ui i i i i ui",;;+
hDC_Bar,0,0,100,100,hDC_Dsk,xmouse-10,ymouse-10,;;+
20,20,0xCC0020)
wait.for(100)
endfor

dll.call("ReleaseDC|ui ui",hWnd,hDC_Bar)
dll.call("ReleaseDC|ui ui",0,hDC_Dsk)

mag.RemoveAll
quit
----------------------------------------------------------------------

Sean






Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to