|
-
Aug 3rd, 2006, 06:26 PM
#1
Thread Starter
New Member
Adding new item to "Look In"/"Save As" combo box in common dialogs
I am trying to integrate a COTS document management software into Windows in order to provide integration for all Windows apps. To do this, my proposed design is to add a new item in the Look In/Save As dropdowns in the common File Open/Save dialog boxes. Typically, the items in the control are drives and folders, however my item will be a link to a DLL control that will process the open/save request through the DM system via API tools.
I have seen this done with another DM package years ago (WinNT) so I know it can happen, but not sure where to begin. I'm not looking to modify the actual common dialogs, rather I need to know where and how the Save/Open dropdown control gets the items.
Any insight or code will be rewarded handsomely!
-
Aug 3rd, 2006, 10:01 PM
#2
Re: Adding new item to "Look In"/"Save As" combo box in common dialogs
you should be able to display a shortcut to your dll, in a folder like my documents or my computer, but may need to set it in flags to show shortcuts
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 4th, 2006, 09:39 AM
#3
Thread Starter
New Member
Re: Adding new item to "Look In"/"Save As" combo box in common dialogs
I was hoping to be able to present the DM application similar to a drive letter in the drop down. That will be more intuitive for users since it will appear as a physical container just like other local and network resources.
-
Aug 4th, 2006, 08:00 PM
#4
Re: Adding new item to "Look In"/"Save As" combo box in common dialogs
i believe the other items are special folders, such as control panel & my network places that have some key in the registry to make them appear in that way in all explorer type windows, i have forgotten what it was now, but i found information when i was searching how to open common dialog starting at my network places, if you don't get it sorted this week, pm me after i get home next weekend and i will look up what i have
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 4th, 2006, 08:28 PM
#5
Re: Adding new item to "Look In"/"Save As" combo box in common dialogs
Your thinking of the "Places" location sidebar shortcuts.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 5th, 2006, 11:33 AM
#6
Thread Starter
New Member
Re: Adding new item to "Look In"/"Save As" combo box in common dialogs
I am familiar with the "places" sidebar, those are registry entries to add/remove/edit items shown. However you can only add folder items to that list, not applications or shortcuts to apps. I think Westconn1's comments that there are special folder designations for certain items (such as those listed) that is closer to what I am after. Drives, folders and components must have a particular designation that allows Windows to read them as resources to be included in the "Look In/Save As" drop down.
-
Aug 5th, 2006, 06:30 PM
#7
Re: Adding new item to "Look In"/"Save As" combo box in common dialogs
i have searched a bit more info, the folders that appear on the side bar are "virtual folders" they have a CLSID control panel is HKEY_CLASSES_ROOT\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D} and my network places is HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}, you can check these out using regedit for there sub keys
i have no idea about creating new ones, but various cameras and scanners do that so it must be ok, i will see if i can find more info later
Edit: this looks like a good starting point http://windowssdk.msdn.microsoft.com.../ms649735.aspx
Last edited by westconn1; Aug 5th, 2006 at 06:45 PM.
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 5th, 2006, 09:53 PM
#8
Thread Starter
New Member
Re: Adding new item to "Look In"/"Save As" combo box in common dialogs
Pete,
Just quickly scanned the namespace article on msdn and it looks promising. I'll go through it more in depth and see where it leads. Thanks for the tip.
Ed
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|