[WM6.5] How to show/hide menu automatically

Discussion in 'MFC' started by zkidkid, Sep 30, 2010.

  1. zkidkid

    zkidkid New Member

    Joined:
    Sep 30, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi All,

    I have a application.
    In which, I will show a message box when receive a specify message. And this message box should is TopMost.

    It work fine except when user click show menu, my message box will show under this menu.

    I had tried to use some code to hide my menu or set top for my messagebox:

    ex:
    ShowWindow(hMenu,SW_HIDE);
    SetForeground(hMessagebox)
    SendMessage(hMenu,WM_COMMAND,0,0);
    ...

    But notthing happen.

    I need it urgently. Thanks for any solution.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice