Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I don't want to display any overwrite prompt while user enter the file name which is already exist in my custom IFileDialog.

I have already gone throw IFileDialog::SetOptions method but it dint solve my problem.

FOS_OVERWRITEPROMPT (0x00000002) : When saving a file, prompt before overwriting an existing file of the same name. This is a default value for the Save dialog.

IS there any flag which help me out from this issue..?? Or is there any other way to prevent the overwrite prompt while saving the file.

Please help me. Many thanks in advance..:)

share|improve this question
It's not very clear what you did -- did you call IFileDialog::SetOptions(0) to reset the value? – Edward Clements 9 hours ago
By default IFileDialog gives overwrite prompt, even FOS_OVERWRITEPROMPT flag is not set.. – AB Bolim 9 hours ago
I haven't used IFileDialog myself, but CFileDialog works with dwFlags set to OFN_HIDEREADONLY – Edward Clements 9 hours ago
CFileDialog does not work in Win7, I mean OnInitDialog() method of CFileDialog does not call in Win7, So that I am using IFileDialog. Is there any flag in IFileDialog ??? – AB Bolim 6 hours ago
The documentation for CFileDialog says OnInitDialog inherited function is not supported under Windows Vista (or later) -- do you do anything special in OnInitDialog()? – Edward Clements 1 hour ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.