Announcement

Collapse
No announcement yet.

Menu Set State (API?)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Menu Set State (API?)

    I want to gray out a menu, but alas we know Menu Set State has an issue with it currently...
    And for some reason my SendMessage code doesn't seem to be working, so I want to accomplish this:

    Menu Set State g_hMenu, ByCmd %IDM_STOP, %MF_GRAYED


    Can someone refresh my memory?

    Thanks!


    [This message has been edited by Scott Turchin (edited March 15, 2000).]
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    Scott -
    Do you execute DrawMenuBar ?
    Win32.Hlp :
    The DrawMenuBar function redraws the menu bar of the specified window. If the menu bar changes after Windows has created the window, this function must be called to draw the changed menu bar.

    ------------------

    Comment


    • #3
      Hi Scott,

      How about this:

      EnableMenuItem g_hMenu,%IDM_STOP,%MF_GRAYED

      I was having the same issue and switched to this and it got me going in a snap.

      Regards,
      Adam

      ------------------

      Comment


      • #4
        There is an issue with the menu set state, and redrawing it is only for after modification of the main menu I believe...

        this is what i was looking for, no wonder I forgot!! hehe...I use it extensively but was lookingfor sendmessage...

        EnableMenuItem g_hMenu,%IDM_STOP,%MF_GRAYED


        Thanks!!

        Scott


        ------------------
        Scott
        mailto:[email protected][email protected]</A>
        Scott Turchin
        MCSE, MCP+I
        http://www.tngbbs.com
        ----------------------
        True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎