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 the command routing in MFC framework?

3 Answers  


What view class enables you to use an edit control as a view?

1 Answers  


If i derive a new class from CObject what are the basic features my derived wil get ?

4 Answers   Microsoft,


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

2 Answers  


Explain StretchBlt and BitBlt

1 Answers  






what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


what if we provide two message handler for same message ?

1 Answers  


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


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

2 Answers  


What is mfc class hierarchy?

0 Answers  


is there any class which is not derived from Cobject

11 Answers   Patni,


What types of threads are supported by MFC framework?

2 Answers  


Categories