Jump to content
Sign in to follow this  
limelect

change the path to an existing windows explorer

Recommended Posts

I have a similar project like this

http://qaru.site/questions/919835/how-to-change-path-of-an-existing-windows-explorer-window

when using 

             Result := Succeeded(ShellBrowser.BrowseObject(ItemIDList,
             SBSP_SAMEBROWSER} or SBSP_ABSOLUTE));
explorer changes but i would like to bring also explorer to FRONT

on top of all pages.

Edited by limelect
  • Like 1

Share this post


Link to post

Just an idea:

The IShellBrowser interface has a method

GetControlWindow

which you can use to get the window handle of a control inside the browser.  You should be able to  use the GetAncestor API function with the GA_ROOT flag with this handle to find the Explorer window itself, and then you can use the SetForegroundwindow API function on that to bring it to front.

Share this post


Link to post

@PeterBelow  Thank you  what i did in the above program just added 2 lines

 

              findexpl:=GetAncestor(WebBrowserApp.HWnd,GA_ROOT);
              SetForegroundwindow(findexpl);
 

  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×