CDialogBar resize problem

A

Abubakar

Hi,

I'm working on a SDI application using MFC ( vc2k5). I have a class that
inherits from CDialogBar and is called CDlgbar2. Inside this bar I place a
dialog that has a label and a dropdown (combo box) on it. Now I want to
resize the drop down so that its width expands and contracts as the main
application window is resized. For this I placed a ON_WM_SIZE() and wrote
(overrided??) CDlgbar2::OnSize. The problem is that OnSize doesnt get called
sometimes. That is, it works *after* the application has expanded to a
certain width, like lets for example say that the magic width is X, when the
width is >X the OnSize gets called but if its < X it doesnt get called. Its
really strange, as there is some code controlling this behavior. Is it some
feature of the cdialogbar class or what am I missing?

Regards,

-ab.
 

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