Results 1 to 3 of 3

Thread: Forcing another EXE to have focus

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    63
    What API call do I need to make to force another EXE to have focus. For exapmle in program A, when I double click an item in a listview, I want program B to become the active window.

    I understand I must first check to see if program B is loaded and all that good stuff.


  2. #2
    New Member
    Join Date
    May 2000
    Posts
    5
    Use FindWindow to get the handle of the program window and then SetForeGroundWindow to set focus.

  3. #3
    Lively Member
    Join Date
    Jan 1999
    Location
    India
    Posts
    85
    I am having the same problem in my post Maximise window.

    I tried by getting the process id or window handle and then using the send message API to maximise.
    try this in your appllicaton.

    Thanks
    Ramdas

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