Author Topic: How to intyeract with MDI Menus related to the child windows items?  (Read 135 times)

xandaz

  • Member
  • ***
  • Posts: 468
  • I luv you babe
    • My asm examples
    I have a question. How do i get the MdiChild window activated when pressing the corresponding item in the menu? Thanks in advance!

Biterider

  • Member
  • ****
  • Posts: 779
  • ObjAsm Developer
    • ObjAsm
Re: How to intyeract with MDI Menus related to the child windows items?
« Reply #1 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

Biterider

xandaz

  • Member
  • ***
  • Posts: 468
  • I luv you babe
    • My asm examples
Re: How to intyeract with MDI Menus related to the child windows items?
« Reply #2 on: October 17, 2021, 02:42:44 AM »
    Thanks Biterider.