How to avoid the TrackBar flicker

C

cae

Hi,

When a trackbar is made visible in a parent window, it flickers,
showing first a rectange filled in gray and then the actual trackbar
(with a white background because I want so). If I later resize the
trackbar control, it redraws correctly without flicker.
Then, if I hide it or move it outside the window, and show it again or
move it inside the window, the flicker happens again.
I tried to derive it and play with backcolor, OnPaintBackground, ...
but nothing works.

Thanks for any idea you could have.

Herve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top