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
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?
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
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.