1

Topic: Question on CFileDialog (file saving)

There is a code: INT_PTR fdRet; TCHAR Buffer [MAX_PATH*4]; BOOL dwRet = GetCurrentDirectory (MAX_PATH*4, Buffer); SetCurrentDirectory (Buffer); CFileDialog fileDialog (FALSE, 0, "measures.izm"); fileDialog.m_ofn.lpstrInitialDir = Buffer; fdRet = fileDialog. DoModal (); if (fdRet == IDOK) {//the further actions;} In this code I open common dialog of saving of files. I want, that by default file name which you want to save, is equal measures.izm. But at me instead of measures.izm in this dialogue appears simply measures (without the extension). When I push button "Save" in this dialogue at me jumps out messages: the File measures.izm I will fish exists. To replace? That is this dialogue correctly understands a name of a saved file by default as measures.izm, but for some reason deduces it as measures. In what the reason of it? How to make so that in dialogue it was deduced not measures, and measures.izm?

2

Re: Question on CFileDialog (file saving)

Hello, RussianFellow, you wrote: RF> That is this dialogue correctly understands a name of a saved file by default as measures.izm, but for some reason deduces it as measures. RF> In what the reason of it? How to make so that in dialogue it was deduced not measures, and measures.izm? There can be a business in parameter of folders - "to Hide extensions for the registered types of files"? Checked up - indeed. MFC here there is nothing, it uses  dialogues.

3

Re: Question on CFileDialog (file saving)

Hello, Evgeniy Skvortsov, you wrote: ES> Hello, RussianFellow, you wrote: RF>> That is this dialogue correctly understands a name of a saved file by default as measures.izm, but for some reason deduces it as measures. RF>> In what the reason of it? How to make so that in dialogue it was deduced not measures, and measures.izm? ES> there Can be a business in parameter of folders - "to Hide extensions for the registered types of files"? ES> Checked up - indeed. MFC here there is nothing, it uses  dialogues. And where in Windows 7 it is possible to change this parameter of folders?

4

Re: Question on CFileDialog (file saving)

Hello, RussianFellow, you wrote: RF> And where in Windows 7 it is possible to change this parameter of folders? A control bar - Parameters of folders - the Type - to Hide extensions for the registered types of files