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 OFN_ALLOWMULTISELECT on Windows Vista.

If the application uses the ODD 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   

If I use OFD of the application GetOpenFileName I have to use single selection mode.

The question is:

Is there any way to detect that in my NSE that OFD is GetOpenFileName ?

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 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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -