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. adding checkbox to submenu item

adding checkbox to submenu item

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 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.
  • G Offline
    G Offline
    ganesh dp
    wrote on last edited by
    #1

    I want show some options as checkbox in menu. this menu could be called by right clicking the dialog. If user select some menu item according to that i will make some operation. how could i add checkbox to submenu item

    K C 2 Replies Last reply
    0
    • G ganesh dp

      I want show some options as checkbox in menu. this menu could be called by right clicking the dialog. If user select some menu item according to that i will make some operation. how could i add checkbox to submenu item

      K Offline
      K Offline
      KingsGambit
      wrote on last edited by
      #2

      If you go through MENUITEMINFO structure (which is used in InsertMenuItem() function) you can find fMask member which supports MIIM_CHECKMARKS value.

      1 Reply Last reply
      0
      • G ganesh dp

        I want show some options as checkbox in menu. this menu could be called by right clicking the dialog. If user select some menu item according to that i will make some operation. how could i add checkbox to submenu item

        C Offline
        C Offline
        Code o mat
        wrote on last edited by
        #3

        CMenu::GetSubMenu[^] and CMenu::CheckMenuItem[^] might help you with that...

        > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

        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