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

What is the use of CCmdTarget ?

4 Answers  


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  


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

1 Answers  


Why not virtual functions to handle messages?

5 Answers  


What is CArchive class dowes?

4 Answers  






Explain StretchBlt and BitBlt

1 Answers  


What is the base class for MFC

3 Answers   HCL,


Explain the flow of SDI application?

8 Answers   Mphasis,


What is the use of OninitDialog ?

11 Answers   HCL, Nagarro,


1)How to change a text of a button in runtime?

2 Answers  


What is thread & process?

15 Answers   Exaband,


Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer

7 Answers   HP,


Categories