|
-
August 3rd, 2009, 04:41 AM
#1
[RESOLVED] CFileDialog SaveAs derfault file name problem
Hello,
I cannot define default file name with dot in FileSaveAs dialog.
The document name is "123.45.jpg". User can define different file extension jpg or bmp.
1)
CFileDialog writeDialog2(FALSE, "bmp", "123.45", OFN_EXPLORER|OFN_OVERWRITEPROMPT|OFN_HIDEREADONLY|OFN_NOREADONLYRETURN| OFN_NOCHANGEDIR,
filter, AfxGetMainWnd());
CFileDialog split .45 from file name and recognize it as extension.
2)
CFileDialog writeDialog2(FALSE, "bmp", "123.45.bmp", OFN_EXPLORER|OFN_OVERWRITEPROMPT|OFN_HIDEREADONLY|OFN_NOREADONLYRETURN| OFN_NOCHANGEDIR,
filter, AfxGetMainWnd());
When I change extension filter file name isn't changed, file always named as "123.45.bmp".
Tags for this Thread
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
|