How do I enable the Preview Pane in Open File Dialogs to continue working in my application when launched from Visual Studio?
I would like for the Preview Pane in Open File Dialogs created by my application to continue working even when that application is being debugged or just launched using "Start Without Debugging" from Visual Studio.
Other applications like KDiff3, Notepad, etc. suffer the same problem. For example, if you run Visual Studio and select Open Project/Solution and load C:\Windows\Notepad.exe, then launch it using Start Without Debugging and, in that instance of Notepad, click File Open, click the icon to show the Preview Pane and select some kind of file for which a preview handler is registered like an image or text file, the Preview Pane will just show a blank. But some applications like Mathematika or Word, when launched this way, will have Open File Dialogs whose Preview Pane continues to work. What are those applications doing that I need to do in my own (C++, MFC-based, built in VS 2015/2019) to allow the Preview Pane to work in Open File Dialogs when my application is launched from Visual Studio?