CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    7

    Handling of window opening

    1) How to handle opening of a window, which belongs to another process (separate application)? The window has unique title, but not unique class. I need more intelligent way, than just calling FindWindow() from infinite loop
    2) How can I monitor and handle closing/terminating of that window, after I found it?

  2. #2
    Join Date
    May 2004
    Location
    Michigan, United States
    Posts
    457
    If you need your application to be notified when another window has been created or destroyed, you'll need to use a hook, since you've already ruled out polling using FindWindow.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  3. #3
    Join Date
    Apr 2004
    Posts
    7
    Yes, already digging in this direction.
    http://www.codeproject.com/system/hooksys.asp

    Thanks!

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