Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. EnableMenuItem???

EnableMenuItem???

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Manikandan
    wrote on last edited by
    #1

    I tried EnableMenuItem to disable a menu. It's not working the menu always ramains enabled. Why:confused:

    T E 2 Replies Last reply
    0
    • M Manikandan

      I tried EnableMenuItem to disable a menu. It's not working the menu always ramains enabled. Why:confused:

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      I'm assuming you're using MFC. MFC calls EnableMenuItem for you - you need to provide ON_UPDATE_COMMAND_UI handlers for menu items you want to enable/disable/check/uncheck. You don't need ON_UPDATE_COMMAND_UI handlers for menu items which stay enabled all the time. Tomasz Sowinski -- http://www.shooltz.com

      ** Putt knot yore thrust inn spel chequers. **

      1 Reply Last reply
      0
      • M Manikandan

        I tried EnableMenuItem to disable a menu. It's not working the menu always ramains enabled. Why:confused:

        E Offline
        E Offline
        Eugene Pustovoyt
        wrote on last edited by
        #3

        Look In my MFC program, I'm trying to disable a menu item with EnableMenuItem(), but it doesn't have any effect on the menu. Why? Best regards, Eugene Pustovoyt

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups