How to create a Modeless Dialog?
Answers were Sorted based on User's Feedback
Answer / arvin
Call the CDialogs Create() function.
NewDialog *dlg;
dlg = new NewDialog;
dlg->Create(IDR_MYDIALOG);
dlg->ShowWindow(1);
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / sonali d
CModeLess *m_pmodeless = new CModeLess(this);
m_pmodeless->Create(CModeLess::IDD);
m_pmodeless->ShowWindow(SW_SHOW);
| Is This Answer Correct ? | 5 Yes | 1 No |
1.First you write the CDialog ctor without any parameter.
2.Then create object of CDialog class & call the Create()
function.
3.After creating call the ShowWindow() function.
*Instead of ShowWindow() you can us the WS_VISIBLE in
dialog rc script file.
While deleting call the DestroyWindow() not EndDialog()
which is for Modal dialog.
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / c.vidhya
CDialog class is base class and Creatte is member function
CDialog dlg;
dlg.Create(LPCTSTR TemplateName,ParentWnd);
| Is This Answer Correct ? | 1 Yes | 6 No |
What is subclassing?
What four types of properties are supported by an ActiveX control?
what is the updated verssion in vc++
What is the difference between ASSERT and VERIFY?
What is the initial function to be called in MFC and what it will do
What interface must be supported by an ActiveX control?
Does the application have more than one object? If no, then what is the reason?
How to handle command line arguements from simple MFC application ?
1)How to change a text of a button as Dynamically?
1)How to change a text of a button in runtime?
what is the difference between compiling and building?
1)How to load an icon on a button as Dynamically ?