Re: CStatic control flicker only when running with Windows Classic theme
Quote:
Originally Posted by
ovidiucucu
...while fixing major UI display issues needs much bigger asteroids. :)
This is what happened to dinosaurs. One of the dinosaurs wanted to really overhaul JurassicOS version 472.12, but the asteroid needed to fix that UI problem was so big that it wiped out all of them in the process.
Re: CStatic control flicker only when running with Windows Classic theme
@ovidiucucu: Your approach might be interesting. Unfortunately it's too late for me to try. As I said in the post #4 above I fixed it by doing the owner-drawn rendering with double-buffering, which completely takes out the flicker. If you update my test project and post it here I will run it on my test OS and tell you if your method fixes it as well or not.
As for comments about my method breaking something in the future, then I don't think so. I'm not doing anything extraordinary to cause that:
While processing WM_DRAWITEM:
1. The background is erased with the COLOR_3DFACE brush.
2. The text is drawn on top of it (using the font selected in the original control.)
3. Then the resulting memory DC in bitblt'ed to the actual control's DC.
That's it. And as I said the WM_ERASEBACKGROUND is stunted by simply returning TRUE in the subclass for the static control.
Re: CStatic control flicker only when running with Windows Classic theme
Quote:
Originally Posted by
OReubens
This is what happened to dinosaurs. One of the dinosaurs wanted to really overhaul JurassicOS version 472.12, but the asteroid needed to fix that UI problem was so big that it wiped out all of them in the process.
Absolutely right!
The mighty dinosaurs died while trying to resolve big UI issues in Cretaceous (or Jurassic *NIX-based :)) Systems.
But a few humble mammals, fixing much more trivial UI things underground, survived.
That's the reason we are now, here. :)
Quote:
Originally Posted by
dc_2000
@ovidiucucu: Your approach might be interesting. Unfortunately it's too late...
Generally speaking:
Never say "too late" for an easier and/or better solution! :)
Re: CStatic control flicker only when running with Windows Classic theme
This thread is about asteroids and dinosaurs. Somebody talks about programming problems - where is the forum moderator?
Re: CStatic control flicker only when running with Windows Classic theme
Quote:
Originally Posted by
Alex F
This thread is about asteroids and dinosaurs. Somebody talks about programming problems - where is the forum moderator?
Here I am (one of them). :)
Well, we were talking (in other words) about how important is to fix (relatively) small UI issues like the one from OP. IMO, not totally off-topic and nothing able to hurt.
So, no reason to ban someone, including me. :)