CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2014
    Posts
    37

    Explore current path

    I quite often use an ide written in assembler: RadAsm3(https://fbedit.svn.sourceforge.net/s...ase/RadASM.zip)

    It has a menu item to explore current path.
    I have used other ide's that have a similar feature but:
    The one in RadAsm3 will activate a current Explorer window if the current path is the same as the one requested.
    All others open a new Explorer window.

    I would like to implement the RadAsm3 approach using Visual Studio 2013 Community c++ as my host compiler for testing.

    I tried to get the title of current windows but it appears ShellExecute "explore" does not produce a conventional window???

    Any suggestions?

    James

  2. #2
    Join Date
    Nov 2014
    Posts
    37

    Re: Explore current path

    I discovered how this is done but could not locate any documentation explaining it.

    Pass your current window handle plus all NULL's for the other parameters with a SW_NORMAL for the last.
    Code:
    	ShellExecute(hWnd, NULL, "","", NULL, SW_NORMAL);
    James
    Last edited by jcfuller; February 24th, 2015 at 08:35 AM. Reason: NULL to ""

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