This topic is now archived and is closed to further replies.

MDI child window activation

This topic is 5576 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, When I have several MDI child windows, and close the active one, another one gets and WM_MDIACTIVATE message. When this message is handled by my ChildWndProc function I enable and disable menu items and things like that, since not all child windows use the same menus. Something like this hMenu = GetMenu(g_mainWindow); hFileMenu = GetSubMenu(hMenu, 0); EnableMenuItem(hFileMenu, MenuItemID, MF_BYCOMMAND | MF_MF_ENABLED); My problem is that, when the child windows are maximized, it doesn''t work.. the menu items don''t get enabled/disabled... Anyone knows what might be the problem? Thanks for any help..! /Erik Rufelt

Share this post

Link to post
Share on other sites