Tech Support > Microsoft Windows > Development Resources > OnActivate( ) ?
OnActivate( ) ?
Posted by George on July 11th, 2003


Is OnActivate( ) the proper windows message to use to determin if a
different MDIChild window is active. For example if you have 5 client
windows open in an MDI app and the user clicks on a different client then
the current one, is the OnActivate( ) message the correct one to use to
determine that there has been a focuse change?

Thanks George


Posted by Jugoslav Dujic on July 14th, 2003


George wrote:
| Is OnActivate( ) the proper windows message to use to determin if a
| different MDIChild window is active. For example if you have 5 client
| windows open in an MDI app and the user clicks on a different client then
| the current one, is the OnActivate( ) message the correct one to use to
| determine that there has been a focuse change?

The message is WM_MDIACTIVATE. I don't speak MFC well, but I see there's
OnMDIActivate handler which seems to do what you want.

--
Jugoslav
___________
www.geocities.com/jdujic