Chris, the weird thing is, with CS_OWNDC, PARENTDC or none declared at all,
problem still is there. CS_CLASSDC is the only one that provides a fix for
this particular problem. It's a tricky one, since the problem only occurs
after a while and disappears directly when the DC is refreshed.
Seems like the problem is within the DC itself. BTW, the article at MSDN
says something about "use CS_OWNDC sparsely in Win95", because it means
using up +800 bytes per Window of the 64KB GDI resource heap. Same thing
probably applies to Win98.
I tested with some other of my controls, like the Virtual listbox, and
using CS_CLASSDC actually gives a tiny bit better performance at redraw
and scroll there too. Interesting..

------------------
Leave a comment: