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 LPCTSTR? What does LP denote it?

4 Answers  


1) create ToolTip in MFC?

2 Answers   HCL,


What is the difference between workrer thread and UI thread

3 Answers   HCL,


Explain Doc/View architecture

6 Answers   Huawei,


What is primitive and non-primitive application?

2 Answers   HCL,






What is the use of CCmdTarget ?

4 Answers  


What?s the difference between Modal and Modeless Dialog?

12 Answers   Jekson, Usl India,


Difference between Debug and Release versions?

4 Answers  


is it possible to display a window .without using windowclass

1 Answers   E Logic,


Why not virtual functions to handle messages?

5 Answers  


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


How to access document object from view ?

1 Answers  


Categories