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".