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. how to set the menu bar???

how to set the menu bar???

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorialquestion
6 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.
  • M Offline
    M Offline
    mimimimilaw
    wrote on last edited by
    #1

    I want to set the menu bar to be ticked or not to be ticked by code. How to do it... Photo[^]

    P H 2 Replies Last reply
    0
    • M mimimimilaw

      I want to set the menu bar to be ticked or not to be ticked by code. How to do it... Photo[^]

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

      have you seen CheckMenuItem

      Prasad Notifier using ATL

      M 1 Reply Last reply
      0
      • P prasad_som

        have you seen CheckMenuItem

        Prasad Notifier using ATL

        M Offline
        M Offline
        mimimimilaw
        wrote on last edited by
        #3

        DWORD CheckMenuItem(HMENU hmenu, UINT uIDCheckItem, UINT uCheck ); what is HMENU hmenu?

        P 1 Reply Last reply
        0
        • M mimimimilaw

          DWORD CheckMenuItem(HMENU hmenu, UINT uIDCheckItem, UINT uCheck ); what is HMENU hmenu?

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          mimimimilaw wrote:

          what is HMENU hmenu?

          Its handle to menu, Have you seen this example

          Prasad Notifier using ATL

          M 1 Reply Last reply
          0
          • P prasad_som

            mimimimilaw wrote:

            what is HMENU hmenu?

            Its handle to menu, Have you seen this example

            Prasad Notifier using ATL

            M Offline
            M Offline
            mimimimilaw
            wrote on last edited by
            #5

            Thx a lot i can do it

            1 Reply Last reply
            0
            • M mimimimilaw

              I want to set the menu bar to be ticked or not to be ticked by code. How to do it... Photo[^]

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              (1) HMENU hmenu=::GetMenu(m_hWnd); CheckMenuItem(/*Handle from menu(HMENU)*/ GetSubMenu(hmenu,0),ID_FILE_OPEN,MF_BYCOMMAND|MF_CHECKED); --------------------- (2) CMenu *menu=GetMenu(); CMenu *menu22=menu->GetSubMenu(0); menu22->CheckMenuItem(ID_FILE_OPEN,MF_BYCOMMAND|MF_CHECKED);

              _**


              **_

              WhiteSky


              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