1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[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