c++ - How to detect that file dialog has been created using GetOpenFileName? -
I take part in developing a namespace shell extension () with a file list from some folders. I have a problem with the Open File Dialog (OFD) created with the flag If the application uses the ODD If I use OFD of the application Is there any way to detect that in my NSE that OFD is Old GetOpenFileName dialog Was not even designed. Trying to fix this by detecting the type of open dialog used is incorrect and GetOpenFileName can only be a wrapper at the top of the new interface. When your IShellFolder :: EnumObjects method is called, then OFN_ALLOWMULTISELECT on Windows Vista.
IFileOpenDialog My NSE works fine. If using
GetOpenFileName is used by application Odid and the user selects some files, then it gets the wrong result because this function returns the string:
& Lt; Folder name & gt; \ 0 & lt; File name 1 & gt; \ 0 & lt; File name 2 & gt; \ 0 \ 0
GetOpenFileName I have to use single selection mode.
The question is:
GetOpenFileName ?
SHCONTF_FLATLIST flag. If the flag is not set, then you should go back to some simple mode where all the items are the same parent. I realize that this is not really for the flag, but this is probably the best non-Hummy solution.
Comments
Post a Comment