I do not know how to create a hwnd of the dialog. Can you tell me? In the cosntructor of the dialog I have the Create (MyClass::IDD, pParent). Creating another pointer to the class would not generate the error I've got?
ok can you tell here what you want to do?.When you call SetWindowText?
In the MainWindow (in the menu) I'm calling the same dialog for two different menus:Estimare and Calcul Tui Manual. Depending on what I choose I want to set the title of the dialog according to the menu. I've done that with SetWindowText but this command changes the name of the main window called "Calipso - bla bla". I tried to use a parameter (&ttitle)in the caption of the dialog but I could not set it properly. In the OnEstim function (Mainframe menu) I have
litera = "E";
...... new CTuiDataInputDlg(this); // the dialog class
this->SetWindowText("Estimare"); this is not working
In the OnInitDialog of the class I have those line with SetWindowText.
OK. You are very right. I forgot those line. Now it is ok. Thanks. And sorry for my stupid questions.