Hello all,
I've got a small program in which I would like to be able to invoke the
"send to" dialog. ComDlg32.dll doesn't seem to offer it, and a quick-ish websearch returns all kinds of results, but not in the direction I need. :-\
Remark: I know that I can populate a listbox with the contents of the "send to" folder (doing everything myself), but I really would like to be lazy and just call the one thats already there. :-)
Regards,
Rudy Wieser
What "Send to" dialog? IIRC, there's no "Send to" dialog.
Since you're expecting it as a common dialog, you can use `SHBrowseForFolder()` to only display the content of the "Send to"
folder
JJ,
What "Send to" dialog? IIRC, there's no "Send to" dialog.
Yeah, I stated that a bit off I'm afraid. Its the right-click -> "send
to" submenu I was talking about.
JJ,
What "Send to" dialog? IIRC, there's no "Send to" dialog.
Yeah, I stated that a bit off I'm afraid. Its the right-click -> "send to" submenu I was talking about.
Since you're expecting it as a common dialog, you can use
`SHBrowseForFolder()` to only display the content of the "Send to"
folder
In my case that would also show a number if items I've suppressed (appended an exclamation mark to the extension of some, and as such don't show up in the "send to" context menu), which isn't quite what I have in mind.
Also, it would not show something like the "DVD-RW drive" entry (which must have been put into the context menu by other means).
Thanks for the reply though. It looks like the lazy option doesn't exist. :-( :-)
Note: the shell extension must be initialized with the file/folder for
the shell extension to work with. Otherwise the shell extension may
create the incorrect set of menu items.
That's just a folder in the user's home directory, %USERPROFILE%\SendTo.
Grab all files in that directory (except desktop.ini, of course) and use
that to build a menu, filtering out the ones you don't want to display.
Auric,
That's just a folder in the user's home directory, %USERPROFILE%\SendTo.
As mentioned in my prevous post here, not quite. The context dialog list both has items that are not in that folder and vise-verse.
Grab all files in that directory (except desktop.ini, of course) and use
that to build a menu, filtering out the ones you don't want to display.
As remarked in my initial post I know that I can do that.
But I currently have little wish to re-create something if I can just use something thats already there. Besides the issue of duplicating the context-menu's filtering rules.
As for the "filtering", do you have any idea where an entry like "DVD-RW (D:)" comes from ? Or how you would ultimatily invoke such an entry on the provided file(s)/folder(s) ?
IOW, there is a good reason why I want to use the build-in method instead
of trying to build my own one.
JJ,
Note: the shell extension must be initialized with the file/folder for
the shell extension to work with. Otherwise the shell extension may
create the incorrect set of menu items.
That would be a problem. I do not have /a/ folder, my items could come
from all over the place (multiple drives even).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:46:05 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,851 |