The MASM Forum

General => The Campus => Topic started by: xandaz on October 17, 2021, 03:40:40 AM

Title: how to resend the messages from MDI Menus to it's client window?
Post by: xandaz on October 17, 2021, 03:40:40 AM
    Hi. Since i'm using Mdi Menus i've been having trouble resending the WM_COMMAND messages that are sent to the Main Window Procedure. How to do that? i've tried :invoke SendMessage,hMdi,uMsg,wParam,lParam
    Doesn't seem to work. PostMesage doesn't either. I'm greaking out. Help Please!
    Thanks in advance.
Title: Re: how to resend the messages from MDI Menus to it's client window?
Post by: xandaz on October 17, 2021, 04:17:59 AM
   Noboder replying. Problem solved:invoke SendMessage,hMdi,WM_MDIGETACTIVE,0,0
invoke SendMessage,eax,uMsg,wParam,lParam

   Thanks anyway. I always can count on you guys.