
Adding combo boxes to dialog at runtime
The simplest way is to have hidden combo box and edit field.
During OnInitDialog() set the combo box size to the minimum size. which does
not include the hidden fields.
On click of the more button, use
SetWindowPos() or MoveWindow() to resize the dialog box and also
make the hidden fields visible.
Use MoveWindow() on the More button to move it.
Cheers
Check Abdoul
--------------------
Quote:
> Hi,
> I have a modal dialog in which there is a combo box and an edit box.
> When I click a button named "More" I want to increase the size of the
> dialog window and add an extra combo box and an edit field, and also
> move the "More" button.
> Does anyone know how to to this? It would be even better if you'd have
> some sample code for me or some useful link perhaps.
> For an illustration of my problem, please check the search function for
> mail in Netcape (menu choice 'View'->'Search Messages'). I want to do
> exactly that!
> Cheers,
> Martin