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

General purpose classes in MFC

1 Answers   TCS,


What is LPCTSTR? What does LP denote it?

4 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.

3 Answers   ABC, HCL, Infosys,


What is LoadLibrary function returns?

7 Answers  


what do you mean by psychic window?

2 Answers   Patni,






What is primitive and non-primitive application?

2 Answers   HCL,


Have you ever used win32 APIs ?

4 Answers   Microsoft,


What is the size of class

18 Answers   Aircom,


i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required

3 Answers   Patni,


How many types of dialog box are their

10 Answers   Honeywell,


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

0 Answers  


1)How to change a text of a button as Dynamically?

1 Answers   HCL,


Categories