Results 1 to 3 of 3

Thread: Add "New Folder" Button to SHBrowseForFolder API

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    2

    Add "New Folder" Button to SHBrowseForFolder API

    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

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    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...
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    2

    SubClassing?

    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

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

    ~Dan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width