Results 1 to 2 of 2

Thread: Help, I'm getting crazy whith this!

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Lisbon, Portugal
    Posts
    55

    Wink

    I have a program that opens any kind of file "if there is an associated program to open it".
    I use shellexecute.

    I wan't to grab the file window that I opened, and put it inside a textbox "Like a viewer".
    The problem is: I need the hwnd of that window, but I don't know is caption! I can't use "Getforegroundwindow", or "getactivewindow", because my program is a MDIChild, and the ret hwnd if from the MDIForm.

    Is there any way to get the hwnd of the new window?
    Thanks, I'm allmost losing my hair :-))

  2. #2
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    According to this URL http://www.vbapi.com/ref/s/shellexecute.html, the ShellExecute call returns a handle to the app that you launch. Is that what you want?

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