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

How to create a Modeless Dialog?

5 Answers  


How many types of dialog box are their

10 Answers   Honeywell,


What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example

6 Answers  


Difference between Debug and Release versions?

4 Answers  


How can we create thread in MFC framework?

3 Answers  






Differ GetMessage, PostMessage & PeakMessage?

4 Answers   Symphony,


how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


Can you explaing the relashionship between document,frame and view ?

2 Answers  


Do you have an idea about MFC?

0 Answers   CDAC, C DAC,


Types of DLL's

11 Answers   Invensys,


Does the application have more than one object? If Yes, Briefly explain.

2 Answers   Soltius Infotech,


What is CSingleDocTemplate?

1 Answers  






Categories