The MASM Forum

General => The Campus => Topic started by: xandaz on October 17, 2021, 01:19:54 AM

Title: How to intyeract with MDI Menus related to the child windows items?
Post by: xandaz on October 17, 2021, 01:19:54 AM
    I have a question. How do i get the MdiChild window activated when pressing the corresponding item in the menu? Thanks in advance!
Title: Re: How to intyeract with MDI Menus related to the child windows items?
Post by: Biterider on October 17, 2021, 01:48:43 AM
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 (https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-mdiactivate)

Biterider
Title: Re: How to intyeract with MDI Menus related to the child windows items?
Post by: xandaz on October 17, 2021, 02:42:44 AM
    Thanks Biterider.