PDA

Click to See Complete Forum and Search --> : Add "New Folder" Button to SHBrowseForFolder API


threep
Aug 14th, 2001, 09:58 AM
Hey

Is it possible to add a button to the SHBrowseForFolder API Dialog? I would like to add a button called "New Folder."

This button needs to popup an input box that allows the user to input a string. This new string must then be concatenated to the string returned by SHBrowseForFolder. My code will take care of creating the directory.

Is this possible? Or do I need to create a whole new form form from scratch?

Thanks
Dan

crispin
Aug 14th, 2001, 10:09 AM
Interesting question,

I asked a few weeks ago if:

A VB App invokes a Dialog Box from the API, and that dialog is then owned by the calling thread, is the dialog open to being subclassed??

i.e. you can't subclass someone elses window (without a C++ DLL)

but if you own the dialog you could subclass it, and do whatever you wanted with it, it might v.messy to add your own buttons to it, and handling all the PIDL's that it uses to represent folders e.t.c, i'd be v.interested to know if anyone has any info - otherwise I might have a crack at it (might).

But then again, the Dialog box might be owned by the Shell (desktop thread) and therefore you're outta luck...

threep
Aug 14th, 2001, 11:28 AM
Hey,

Thanks for the reply. I did a quick search on google for "subclassed visual basic" and I found this site that does something very similar, only with the Open/Save as Dialog. Here is the link (http://www.arcatapet.com/vb.html)

The code works. The Problem is that I am not familiar with SubClassing. Do you know of any good online resources for this?

~Dan