Jump to content
  • Advertisement


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

Erik Rufelt

MDI child window activation

This topic is 5882 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!