How to create a Modeless Dialog?

Answers were Sorted based on User's Feedback



How to create a Modeless Dialog? ..

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

How to create a Modeless Dialog? ..

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

How to create a Modeless Dialog? ..

Answer / ctharam

to create Modeless DialogBox as programming level is:

For Example:-

CModeLess *ModeLessDialogBox = new CModeLess();

ModeLessDialogBox->Create(null,IDB_DIALOG1);

ModeLessDialogBox->ShowWindow(SW_SHOW);

Is This Answer Correct ?    1 Yes 2 No

How to create a Modeless Dialog? ..

Answer / bijender singh

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

How to create a Modeless Dialog? ..

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

Post New Answer

More MFC Interview Questions

What is thread & process?

15 Answers   Exaband,


1)How to create ToolTip in MFC?

2 Answers  


How can update edit control data of an executing application from other application?

3 Answers   HP,


What is the base class for MFC

3 Answers   HCL,


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,






what message is sent to an application when the user presses the primary button?

0 Answers   University Exams,


how u can move CDC pointer to one line in cview?

2 Answers  


Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


What function is called by a document class to notify views that the document has been changed?

2 Answers  


1)How to change the size of a button at run time ?

1 Answers  


What is the use of CCmdTarget ?

4 Answers  


How to convert the content of buffer into lower case character.

3 Answers   E Logic,


Categories