CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15

Threaded View

  1. #11
    Join Date
    May 2005
    Posts
    4,954

    Re: open a folder and select the specified file ?

    Quote Originally Posted by suchuhui80
    what if there are two alike title of this sort of window ?
    In that case you need also check that the EXE is Explorer and not something else.
    Or that the class name of the window is "ExploreWClass" which is the class of explorer (at least in windows XP ).
    If you got 2 Explorers open i don’t think its a problem cause if i understand what you need to do you can simply open one of them.

    Quote Originally Posted by suchuhui80
    Besides,
    if I successfully get the handle of my specified folder window and I try to
    imitate user action to select the file,what if the fold has a sub-folder with the same name ?
    Here it might fails (it will select the first of the two it will run into that’s depend on the current sorting of explorer) , that’s why even in my last post I told you that this solution is less good than the first one.

    Quote Originally Posted by suchuhui80
    what if the fold has a file with the same name ? Besides,what if ,no what if again for this will make my thread lengthy.
    I am not new to developing software,so it's natural to make software more precise and more reliable :-).
    There cant be a folder like the file name under the same folder, Explorer wont let it, unless you have file with the same name with an extension (maybe the extension is hidden so it looks like you have folder and file with the same name).

    BTW another way to look for the items in Explorer by using Active accessibility.


    Cheers
    Last edited by golanshahar; March 18th, 2006 at 07:21 AM.
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

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

Featured