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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Checked menu ???

Checked menu ???

Scheduled Pinned Locked Moved C / C++ / MFC
designhelpquestionannouncement
5 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.
  • S Offline
    S Offline
    Surivevoli
    wrote on last edited by
    #1

    :confused:I write a Application in form "Dialog" use menus. I want to display "checked sign" when user click left mouse on that menu by using this code : void CMTCaroDlg::OnUpdateOptionPlayoverlan(CCmdUI* pCmdUI) { // TODO: Add your command update UI handler code here pCmdUI->SetCheck(TRUE); } But when i run the Application, no thing to change !!! Why ??? Help me please !!! Lgx

    I M 2 Replies Last reply
    0
    • S Surivevoli

      :confused:I write a Application in form "Dialog" use menus. I want to display "checked sign" when user click left mouse on that menu by using this code : void CMTCaroDlg::OnUpdateOptionPlayoverlan(CCmdUI* pCmdUI) { // TODO: Add your command update UI handler code here pCmdUI->SetCheck(TRUE); } But when i run the Application, no thing to change !!! Why ??? Help me please !!! Lgx

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      this kind of handles are invalid for dialog. u need to check it yourself by CheckMenuItem() function.


      A special image tool for C++ programmers, don't miss it! The world unique Software Label Maker is here for you and me ... A nice hyper tool for optimizing your MS html-help contents.


      S 2 Replies Last reply
      0
      • I includeh10

        this kind of handles are invalid for dialog. u need to check it yourself by CheckMenuItem() function.


        A special image tool for C++ programmers, don't miss it! The world unique Software Label Maker is here for you and me ... A nice hyper tool for optimizing your MS html-help contents.


        S Offline
        S Offline
        Surivevoli
        wrote on last edited by
        #3

        where is inserted it ?

        1 Reply Last reply
        0
        • I includeh10

          this kind of handles are invalid for dialog. u need to check it yourself by CheckMenuItem() function.


          A special image tool for C++ programmers, don't miss it! The world unique Software Label Maker is here for you and me ... A nice hyper tool for optimizing your MS html-help contents.


          S Offline
          S Offline
          Surivevoli
          wrote on last edited by
          #4

          How does use it ??? Help me please !!!

          1 Reply Last reply
          0
          • S Surivevoli

            :confused:I write a Application in form "Dialog" use menus. I want to display "checked sign" when user click left mouse on that menu by using this code : void CMTCaroDlg::OnUpdateOptionPlayoverlan(CCmdUI* pCmdUI) { // TODO: Add your command update UI handler code here pCmdUI->SetCheck(TRUE); } But when i run the Application, no thing to change !!! Why ??? Help me please !!! Lgx

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            The update command UI system doesn't run for dialogs unless you add message handler for WM_KICKIDLE and start the update process from there. Google for WM_KICKIDLE and you should find many pages on what to do

            --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

            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