Results 1 to 5 of 5

Thread: Event

  1. #1

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Event

    i want to know which event is this when an application is running, its window is the active window currently, and another application gets selected from lets say the task bar or another application is run
    which is this event

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Event

    the application that has focus. i think it has to be an active form, not loading.

  3. #3
    New Member
    Join Date
    Apr 2005
    Posts
    2

    Re: Event

    It might be WM_WINDOWPOSCHANGED, but I'm not absolutely sure. You'd want to check if it's the Z-order of the window being changed.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Event

    You can get that with a timer and checking the handle of the active window. You can do this with the GetActiveWindow or GetForegroundWindow APIs


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Re: Event

    first of all Check the Z-Order in which event n then the problem actually is that im displying a form in an MDI form, which is not a mdi child, so i want to change it as the mdi form changes, i have done it for mdi minimize that it hides, but now i want to also hide it when the window is deselected, i tried to use this code but it din't work

    VB Code:
    1. Private Sub MDIForm_Activate()
    2.     Frm_Info.Visible = True
    3. End Sub
    4.  
    5. Private Sub MDIForm_Deactivate()
    6.     Frm_Info.Visible = False
    7. End Sub
    Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water

    Huzefa Yousuf
    Software Engineer
    Verticity Inc.
    +92-345-2235303

    [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