News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

How to intyeract with MDI Menus related to the child windows items?

Started by xandaz, October 17, 2021, 01:19:54 AM

Previous topic - Next topic

xandaz

    I have a question. How do i get the MdiChild window activated when pressing the corresponding item in the menu? Thanks in advance!

Biterider

Hi
In the menu item handler, send a WM_MDIACTIVATE message to the client window.
You need to know the MDI child window handle. If not, loop through all child windows until you find the one you are looking for and send the WM_MDIACTIVATE message.

Read this documentation
https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-mdiactivate

Biterider

xandaz