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 |
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
What is the difference between regular dlls and extended dlls?
what is the difference between SDI and MDI
15 Answers CMC, HCL, Siemens,
What is socket?
How can i implement the dynamic menus in MFC plz give the code
What are the special requirements for dialog box resources used in a form view?
What is a message map, and what is the advantage of a message map over virtual functions?
How to handle RTTI in MFC ?
How WM_PAINT message gets called in MFC,please explain it . a)Who calls the WM_PAINT message? b)When it gets called? c)how it comes to message queue? Please Explain it
What is the difference between OnInitialUpdate and OnUpdate?
In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?
3 Answers Financial Technologies,
What is the use of UpdateData funciton ?