|
-
October 18th, 2005, 10:56 PM
#1
Regarding SaveAs Filedialog
Hi,
I Created SaveAs FileDialog.
In that SaveAs FileDialog ,, in SaveIn combobox, i want my required location to be there when the dialog is created.
How can i get that.
Regards
Kiran
-
October 18th, 2005, 11:23 PM
#2
Re: Regarding SaveAs Filedialog
Set the lpstrInitialDir member of the OPENFILENAME structure. If you're using the MFC class CFileDialog, that structure is a class member called m_ofn.
-
October 18th, 2005, 11:24 PM
#3
Re: Regarding SaveAs Filedialog
// szFilters is a text string that includes two file name filters:
// "*.my" for "MyType Files" and "*.*' for "All Files."
char szFilters[]="MyType Files (*.my)|*.my|All Files (*.*)|*.*||";
// Create an Open dialog; the default file name extension is ".my".
CFileDialog fileDlg (FALSE, "my", "*.my",
OFN_FILEMUSTEXIST| OFN_HIDEREADONLY, szFilters, this);
fileDlg.m_ofn.lpstrInitialDir = "E:\\";
SG
-
October 19th, 2005, 12:13 AM
#4
Re: Regarding SaveAs Filedialog
thanku..
it worked perfectly.
--Kiran
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|