how to show shell context menu, given only file name?
-
Can anyone tell me how to show the shell context menu for a file when all you have is the file name. I got a menu to show up but not with all the items and the ones that are there don't work right - when I click on properties the Properties dialog comes up, but with most of the info blank or 0. What I've done so far is get the PIDL for the file by using SHGetDesktopFolder() to get the desktop folder and calling ParseDisplayName which works fine. I think what is going wrong is I'm calling GetUIObjectOf() to get the IContextMenu interface with the desktop folder, when it needs the pidl's direct parent folder. If this is the case how do you get a pidl's parent folder? - thanks
-
Can anyone tell me how to show the shell context menu for a file when all you have is the file name. I got a menu to show up but not with all the items and the ones that are there don't work right - when I click on properties the Properties dialog comes up, but with most of the info blank or 0. What I've done so far is get the PIDL for the file by using SHGetDesktopFolder() to get the desktop folder and calling ParseDisplayName which works fine. I think what is going wrong is I'm calling GetUIObjectOf() to get the IContextMenu interface with the desktop folder, when it needs the pidl's direct parent folder. If this is the case how do you get a pidl's parent folder? - thanks
Read Raymond Chen's posts on hosting a context menu, start here[^]
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Read Raymond Chen's posts on hosting a context menu, start here[^]
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ