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. Sub menu Item Check and uncheck in Win 32

Sub menu Item Check and uncheck in Win 32

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 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.
  • A Offline
    A Offline
    arun_pk
    wrote on last edited by
    #1

    how do i check whether my submenu item is checked

    P C 2 Replies Last reply
    0
    • A arun_pk

      how do i check whether my submenu item is checked

      P Offline
      P Offline
      PrafullaShirke27
      wrote on last edited by
      #2

      MENUITEMINFO info;
      info.cbSize = sizeof (MENUITEMINFO); // must fill up this field
      info.fMask = MIIM_STATE; // get the state of the menu item
      VERIFY(submenu->GetMenuItemInfo(ID_HELP_TEST, &info));
      if( info.fState == MF_CHECKED))
      //
      else
      //

      This code will help.

      A 1 Reply Last reply
      0
      • P PrafullaShirke27

        MENUITEMINFO info;
        info.cbSize = sizeof (MENUITEMINFO); // must fill up this field
        info.fMask = MIIM_STATE; // get the state of the menu item
        VERIFY(submenu->GetMenuItemInfo(ID_HELP_TEST, &info));
        if( info.fState == MF_CHECKED))
        //
        else
        //

        This code will help.

        A Offline
        A Offline
        arun_pk
        wrote on last edited by
        #3

        thanksssss working fine

        1 Reply Last reply
        0
        • A arun_pk

          how do i check whether my submenu item is checked

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

          If you check if it is checked then it is checked since you check it. :D

          > 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. <

          enhzflepE 1 Reply Last reply
          0
          • C Code o mat

            If you check if it is checked then it is checked since you check it. :D

            > 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. <

            enhzflepE Offline
            enhzflepE Offline
            enhzflep
            wrote on last edited by
            #5

            :laugh: X| :thumbsup:

            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