Click to See Complete Forum and Search --> : ATL Drawing Problem(s)


Ryan@Neoworx
November 1st, 1999, 01:03 PM
Howdy all.

Well, I've been kncking off the problems on my ATL control pretty quickly But I've still got two stumpers that would appreciate some outside experience.

1) FireViewChange(): This doesn't seem to be doing what I want. I'm calling it, and in the trace it seems to be invalidating everything that needs to be, but OnDraw isn't being called.

2) OnDraw(): Is being called multiple times. With weird parameters. Here's a trace of the OnDraw rectangle:

OnDraw: (10,40)-(650,520)
OnDraw: (10,-110)-(650,370)
OnDraw: (10,-260)-(650,220)
OnDraw: (10,-410)-(650,70)
OnDraw: (10,0)-(650,480)
OnDraw: (10,-150)-(650,330)
OnDraw: (10,-300)-(650,180)
OnDraw: (10,-450)-(650,30)
OnDraw: (10,40)-(650,520)

As you can see, I'm getting all these extraneous calls (only the 10,40,650,520 covers the entire control) I have no idea why the y values are shifting around like that.

Any clues?

Ryan


NeoWorx Inc.
Makers of NeoTrace, NeoLite, and NeoSpace