-
August 10th, 2006, 11:45 PM
#1
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.
-
August 11th, 2006, 01:14 PM
#2
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.
-
August 13th, 2006, 12:03 AM
#3
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
-
August 13th, 2006, 12:15 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|