1)set the Title for The File DialogBox, in MFC?



1)set the Title for The File DialogBox, in MFC?..

Answer / 106743013743


void CtharamDlg::OnBnClickedFileBtn()
{
CFileDialog *dlg = new CFileDialog(TRUE);

dlg->m_ofn.lpstrTitle = L"It's Time to Open the File";

dlg->DoModal();
}

try it, surly execute


code by Ctharam

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More MFC Interview Questions

Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?

2 Answers   Sony,


Explain in sort What is CTargetObject?

2 Answers  


Given two processes, how can they share memory?

2 Answers   Microsoft,


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

3 Answers  


Explain about MDI and CMultiDocTemplate ?

2 Answers  


1)set the Title for The File DialogBox, in MFC?

1 Answers  


What?s the difference between Modal and Modeless Dialog?

12 Answers   Jekson, Usl India,


List out the basic features of MFC.

4 Answers   Mphasis,


What is the difference between Struts and JSF? Pls list some most suitable differences.

0 Answers  


What is the base class for MFC Framework ?

4 Answers  


Why not virtual functions to handle messages?

5 Answers  


what is the difference between SDI and MDI

15 Answers   CMC, HCL, Siemens,


Categories