CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2003
    Posts
    18

    MDI Application Active Event

    Hi,
    I need to know which is the event that an MDI application will receive when an application receives focus (active application ).
    Is it WM_ACTIVATE event? I feel this event will be triggered even when its Child windows receives focus.?

    Any hints on this one will be useful for me.

    Thanks in Advance
    Vinod
    Last edited by vinodpj; August 10th, 2006 at 11:48 PM.

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: MDI Application Active Event

    To clarify: Windows is not event driven but message driven; windows receive messages. WM_SETFOCUS is the message that system sends to a window when it gets/looses focus.
    Main window never has focus (keyboard input messages are not sent to a main window).

    What is the window you are trying to handle?
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  3. #3
    Join Date
    Sep 2003
    Posts
    18

    Re: MDI Application Active Event

    Hi,
    I need to know when my application becomes gets active?

    I am trying for the main window which has menus and toolbar.

    Thanks
    Vinod

  4. #4
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: MDI Application Active Event

    But it will be sent to child window, so if you handle it in mainframe it's for application.

    You can also use WM_ACTIVATEAPP message for that. Just handle them in mainframe.
    Regards,
    Ramkrishna Pawar

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