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

I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)

2 Answers   Invensys,


How to update windows title bar dynamically?

7 Answers   HCL,


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

0 Answers  


What is userdefine Messages in MFC?

1 Answers   HCL,


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

2 Answers  






What is the difference between GetMessage and PeekMessage ?

3 Answers  


1)How to create ToolTip in MFC?

2 Answers  


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,


What is a critical section and how is it implemented?

2 Answers  


1)dynamic creation of a Button ?

2 Answers   TCS,


What is stack size in win32 program?

1 Answers   HCL,


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


Categories