How to embedded CFileDialog to user dialog?
-
How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks
-
How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks
-
How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks
Maybe this... Using Common File Dialogs as Modeless Views[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks
Why would you want a modeless CFileDialog? I can't think of any case where a user would select some sort of open/save button and have the software not wait for an input or a cancel. Regardless of that though, if you really want it, just make your own class derived from CFileDialog (you'll have to replace
DoModal()
with a call toCreate()
). Override the virtual methodsOnOK()
andOnCancel()
and you have your own modeless CFileDialog. -
How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks
I don't think it is possible to embed standard dialog inside a form neighther to execute them as modeless. You can customize the look of standard dialog but it won't make theme modeless... If you are targetting Vista and Windows 7, you might look at : http://archive.msdn.microsoft.com/WindowsAPICodePack[^] http://stackoverflow.com/questions/2416963/how-to-create-an-explorer-like-folder-browser-control[^] You could also look at that product: http://www.ssware.com/fldrview.htm[^] Although that product is not free, this is probably the best solution (Active-X control) if you want to uses it from a MFC application and do not want to uses .NET framework and you still want to support XP (or even older OS).
Philippe Mori