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

    About ShellExecute Function

    How to get Handler to window(HWND) that was created by function "ShellExecute" function?


  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: About ShellExecute Function

    ShellExecute() returns an HINSTANCE if successful. You need to call EnumWindows() to list all top-level windows, and then use

    hInstWnd = (HINSTANCE)::GetWindowLong(hWnd, GWL_HINSTANCE)

    on each of them to see if hInstWnd matches the instance returned from ShellExecute().



    --
    Jason Teagle
    [email protected]

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