how does conditionally close the Dialog Box ?

Answers were Sorted based on User's Feedback



how does conditionally close the Dialog Box ?..

Answer / 106743013743

Hi,

void Ctharam::OnClose()
{
OnOK();
CDialog::OnClose();

}


code by Ctharam

Is This Answer Correct ?    4 Yes 1 No

how does conditionally close the Dialog Box ?..

Answer / gg

need to put condition inside onclose() it satisfy call CDialog::OnClose,other wise return;

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More MFC Interview Questions

What is socket?

3 Answers  


Tell me the different controls in MFC ?

5 Answers  


How to convert a CString variable to char* or LPTSTR?

5 Answers   Dover,


What is mfc class hierarchy?

0 Answers  


Tell us something about MFC?

7 Answers   Microsoft,






How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


How can we create thread in MFC framework?

3 Answers  


How do you change the properties for a tree view control that is part of the CTreeView class?

1 Answers  


What types of threads are supported by MFC framework?

2 Answers  


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  


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

2 Answers  


How we can findout Memoryleaks, In what way it can be avoided

6 Answers   Infosys,


Categories