Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging screen updates.

Status
Not open for further replies.

Jocsta

Programmer
Jun 14, 2002
204
0
0
GB
I am currently playing with userdrawn list controls, and trying to some simple things such as filling the background with a pattern, and drawing the contents myself etc.

So for a part of this I have implemented a OnEraseBackground method, and do *stuff* in there for want of a better phrase.

When performing this drawing, it seems to be using an offscreen buffer and then blitting it in afterwards. What I ideally want to be able to do is step through the code, and see the drawing updates (i.e. fill region, draw line etc) as they happen. I did stumble on a cludge that allowed me to do this (just by getting the view again seemed to force a repaint to the screen, but that has stopped working now).

Does anybody know how I can *force* updates directly to the screen from within any method?

Thanks,

<< JOC >>
 
you could have a look at the LockWindowUpdate and UnlockWindowUpdate methods, just a thought
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top