Hi, I want to make it possible for the user to create an unlimited (perhaps up to ten in practice

) number of dialog boxes/windows at runtime depending on what the user selects in the main gui. It is meant to be a lot of dialog modules each containing a specific set of adjustable parameters that affects the processing in the main gui. The problem is I don't know how many dialog are going to be created at compile time. Because of the ways I want to use the code it is very important for me that I do not just hardcode ten different resource ids in the resource file. I want to create the dialog ids, set their positions, _style_s, sizes and fill controls into them at runtime. I have made this class: class AM3DParamInterfaceWindow : public CDialog and in the constructor I try to create the dialog: this-Create(dialogId, pParent); //CWnd* pParent is a pointer to the parent window The problem is that dialogId apparently has to exist in the .rc file otherwise I get an error saying that the resource can not be found. I also think the ids of the dialogs have to be different in order not to mix up things. I hope you understand what I want to accomplish otherwise I will try to explain it better. /Kim