Interesting. Often used style is %CS_HREDRAW OR %CS_VREDRAW, which makes
the control repaint itself if resized/moved in x/y direction. Discovered
that this can make a control flicker, if you already handle this yourself.
Also actually can make things slightly slower, especially on slow machines.
Ran the editor I am working on in an old 486 with Win95A and noticed how it
flickered when resized. Removed %CS_HREDRAW OR %CS_VREDRAW from the class
and the flicker disappeared, plus the control actually repainted a tiny bit
faster at scrolling. Last thing shouldn't be affected by those styles, but
still was. Obviously can't believe everything MS says..
Used MS Spy++ to check out the styles for some "commercial" controls and
noticed that especially edit controls often is created without %CS_HREDRAW
and %CS_VREDRAW. Worth playing around with a bit, I think..
------------------
the control repaint itself if resized/moved in x/y direction. Discovered
that this can make a control flicker, if you already handle this yourself.
Also actually can make things slightly slower, especially on slow machines.
Ran the editor I am working on in an old 486 with Win95A and noticed how it
flickered when resized. Removed %CS_HREDRAW OR %CS_VREDRAW from the class
and the flicker disappeared, plus the control actually repainted a tiny bit
faster at scrolling. Last thing shouldn't be affected by those styles, but
still was. Obviously can't believe everything MS says..
Used MS Spy++ to check out the styles for some "commercial" controls and
noticed that especially edit controls often is created without %CS_HREDRAW
and %CS_VREDRAW. Worth playing around with a bit, I think..

------------------
Comment