Yes, you have to create them on the fly (a new CButton, for instance) having as parent the dialog you want to put them in.
Then be sure to assign a new ID to your control, an ID that your parent dialog is aware of, for example:IDC_NEW_BUTTON.
In the dialog's wnd proc watch then for messages that have as destination the new control and act correspondingly to it.
I never done it so far, but this is the way I'd do it.
Hopefully it works...
[red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro