mfc >> Controls from dialogbox disappearing?

by davinder » Thu, 23 Mar 2006 17:11:27 GMT

Hi

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 decrease column size,
the buttons & the static text disappears.
When i drag the column divider to increase the column size things stay
perfect.

Now when i bring the mouse over the button they are displayed.

What cude be the possible reason for such behaviour.

Waiting for suggestions





mfc >> Controls from dialogbox disappearing?

by Tom Serface » Fri, 24 Mar 2006 00:53:42 GMT


It's tough for me to tell what's going on from this description, but could
it be that you have some controls overlapped. I'm not sure how you did the
jpg as a background and without code it's tough to tell for sure, but it
sounds like some controls are behind others and popping to the front when
they are selected.

Tom








Similar Threads

1. Increase the Font of a Static Controls in DialogBox Controls

hi all,

i want to Increase the Font of the Labels before all the Controls. is there 
any approach to increase the Font of a Static Control that we palce before 
all the Controls to Identify. i want to increase the Font Size of the Static 
Controls before the placed before the Controls in a Dialog Box.

please let me know,

uday.