weird stuff happening here...i have set the map mode to AN_ISOTROPIC, and my plan is that as the mouse moves over the client area, it drags an ellipse with it (u dont have to press any mouse button, just move the mouse)...this works as planned when i use invoke Ellipse..., but when i use CreateEllipticRgn followed by PaintRgn (or FillRgn), a strange thing happens...after moving the mouse around the client area for a while (like 20-30 secs) all of a sudden the ellipse just disappears!!!

the coordinate system has been set up so that the origin will be at the position of the mouse cursor as it moves, the positive X goes to the LEFT, positive y goes UP

take a look for is the source using invoke Ellipse (it works fine):

and here is the source using CreateEllipticRgn (move the mouse around the client area for a while, the ellipse will suddenly disappear)

in both files only the window procedure is slightly different...winmain is the same in both

Posted on 2003-04-27 19:42:33 by AnotherWay83

I'm still learming ASM, but it looks like a resource leak to me, you need to delete the created brush before the endpaint...

Posted on 2003-04-27 20:02:06 by Brad
cool...i'll try that and let u know...thanks
Posted on 2003-04-27 20:07:41 by AnotherWay83
thanks...that was exactly the problem :D
Posted on 2003-04-29 01:36:31 by AnotherWay83