Results 1 to 8 of 8

Thread: [2005] Shell32.FolderView control: The saga continues...

Hybrid View

  1. #1
    Hyperactive Member ZaNi's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    360

    Re: [2005] Shell32.FolderView control: The saga continues...

    Ask and you shall recieve... something. Hopefully that's what you're looking for.
    * Don't limit yourself to sanity
    * I'd rather be optimistic and naive than pessimistic and right
    * Ask good questions, get good answers.

    My Codebank submissions:
    How to write one rountine to handle many events
    Accessing and Using variables across multiple forms
    Printing/Previewing a form or control

    Links I've "borrowed" from other people:
    vbdotnetboy - Awesome site for tips

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Re: [2005] Shell32.FolderView control: The saga continues...

    I actually discovered that vb classic example just before you posted this. In particular, I downloaded the sample at http://btmtz.mvps.org/enumdeskvb/

    It does exactly what I want. Now I have to convert it to .Net and wrap it in a control.

    If anybody knows offhand how to filter the files listed (at least by wildcard, but preferably arbitrarily) please speak up and save poor Agent here from a lot more research. My head hurts.

    Now the real work begins (translating and wrapping).

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Re: [2005] Shell32.FolderView control: The saga continues...

    After reviewing the code in the example I posted above, I discovered that it also emulates the FolderView window. As my goal is to avoid emulation and let windows do the control itself, I'm not going to wrap that code into a control.

    Basically, all it does is creates a ListView and TreeView using the CreateWindowEx function and populate it with the entire Shell namespace. It also implements the shell context menu.

    The reason I want to avoid emulation is that in future versions of windows, Microsoft may significantly change the behavior of the FolderView control without changing the method of creation and interaction (i.e. it'll use the same interfaces and classes).

    When this happens, I want my program's control's updated thus.

    New direction for project: Anybody know where I can get a tlb that has ALL of the shell interfaces, including the hard to find IShellBrowser interface? I say hard to find because while I now have several shell related tlbs registered on my system, none seem to have IShellBrowser.

    I am aware that the MSDN says you don't need to implement it. My program emulates (with much added functionality) a common shell window and needs to implement IShellBrowser to function properly.

    Why, oh why couldn't Microsoft add ALL of the shell interface defs to shell32.dll?

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