Announcement

Collapse
No announcement yet.

Menu Set State (API?)

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

  • Scott Turchin
    replied
    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>

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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

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

    Leave a comment:


  • Semen Matusovski
    replied
    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.

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

    Leave a comment:


  • Scott Turchin
    started a topic Menu Set State (API?)

    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).]
Working...
X