Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code to create a common dialog box

Status
Not open for further replies.

bhavin12300

Programmer
Oct 12, 2006
24
IN
hi.
i needd you halp once again guys.

i want to know about the information and some coding about the common dialog boxes in visual c++ MFC.(such as common OPEN dialog box and other too like save ,saveas etc).

please anyone tell me in which class this dialog boxes are there so that i can insert in my application.
please anyone can help me cox my project got paused due to this.
if anyone need more information than tell me i will provide you all that you all guys require.
thnks you very much in advance.
 
Try This
Code:
	CFileDialog dlg(TRUE/*Open=TRUE Save=False*/,NULL/*Filename Extension*/,"Directory Selection"/*Initial Filename*/,OFN_ENABLESIZING|OFN_EXPLORER|OFN_FILEMUSTEXIST/*Flags*/,"Text (*.txt)|*.txt|All Files (*.*)|*.*||"/*Filetype Filter*/,this/*parent Window*/);

if (dlg.DoModal() == IDOK)
{
	CString fileName = dlg.GetFileName();
}

This is an open dialog bug I have included comments indicating the purpose of the parameters.
 
thank you sooooooo much MR.OLAFBOGUS
THANKS YOU CAN YOU ASLO GIVE ME ANY REFERENECE EBOOK FROM WHIHC I CAN HAVE MORE OF THIS STUFF REGARDING VISUAL C++.
 
I have not got any reference books but i'm sure you could find some on amacon.co.uk try searching for C++ MFC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top