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

Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


Tell me about different kinds of synchranization objects ?

6 Answers  


What is the range of intensity of RGB

1 Answers  


Does the application have more than one object? If Yes, Briefly explain.

2 Answers   Soltius Infotech,


how to give colour for dialog button or static buuto?any one explain full code ?pls pls

3 Answers  


What is socket?

3 Answers  


How to update windows title bar dynamically?

7 Answers   HCL,


What is the use of CObject::Dump function ?

4 Answers  


WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE

4 Answers   Google, Microsoft, TCS,


what is message loop how mfc does it internally?

4 Answers   Aspire,


What are the types of button controls?

10 Answers  


Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);

2 Answers  


Categories