Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog box : add or retrieve string, combo box, etc... dynamically

Status
Not open for further replies.

chris1662

Programmer
Aug 18, 2000
3
FR
Hello,
I would like to create dynamically some dialog in function of string, values,... without using a ressource.

This means i can add a string and a combo box for example in a dialog box.

One time dialog can be like this :
Option1 v
Option2 16

And the other time :
Option1 40
Option2 o
Option3 v

v means a check box checked, o means unchecked

If someone can help me or just say me the way to create a dialog without using ressource it would be fine. Or tell me about some articles. If such a question was allready sent, please tell me which one because there are so many.

Thanks. ;-)

< Chris >
 
Ok, i found myself the way to do this.
Using CDialog::CreateIndirect.

Problem is that these function return an error and i don't know why. If i use InitModalIndirect it returns no error. Than i use DoModal and it returns an error.

So is my Template right and something else wrong ?

Help,
< Chris >
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top