Controls from dialogbox disappearing?
Posted on 2006-03-22
In my MFC dialog based application, i am using a JPEG file as a background for my dialog box whose code i have given in the
OnEraseBkgnd() in the dialog class.
Also i have few static controls on my dialog box -- a static text, 2 buttons & a list control to be precise. In order to have the background of these controls as transparent i have written the neccessary code inside the OnCtlColor().
When the application is run, everything is perfect but as soon as i click on the column divider in the list control & drag it to increase or decrease column size, the buttons & the static text disapperars.
Now when i bring the mouse over the button it is displayed.
What cude be the possible reason for such behaviour.
Waiting for suggestions