Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am using CFiledialog's vista style to have the latest style of the windows, In win 10 its working good where as in Win 7 Ultimate. I'm getting a warning message like the media is write protected.
I don't want the default drop down for open button in this application. if its not possible, I don't want to show the message.

Thanks in advance for the suggestions!!

What I have tried:

I tried for the flags to disable/hide with no luck
Posted
Updated 27-Oct-17 5:32am

The CFileDialog is a bit tricky, so I remember messing around with it some years ago. I think the article Displaying the 'new' Vista/Windows 7 File Dialog shows what solved my problems or the broader article XFileDialog - Customizing CFileDialog with its links should finally help you.

If you cant solve it than consider using different implementations for the different Windows versions.
 
Share this answer
 
Strangely enough nothing has changed since you posted this same question at How to Disable open drop down - ATL / WTL / STL Discussion Boards[^] and Vista Goodies in C++: Using the New Vista File Dialogs[^]. Please do not repost, but reply to people who have alreay offered suggestions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900