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

1)how to Display the File Dialog Box, in MFC ?

1 Answers  


Tell me the different controls in MFC ?

5 Answers  


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


What function is used to retrieve the currently selected index in a list box?

2 Answers  


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,






How we call a dialog in another dialog?

2 Answers  


What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


1) Enable or disable a Cancel button at run time?

1 Answers   HCL,


List out the basic features of MFC.

4 Answers   Mphasis,


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


I want recent paper pattern for HP company?

0 Answers   HP,


How to create a Modeless Dialog?

5 Answers  


Categories