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
2 Posts 2 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" using Menus: Option * TurnMusic I want that : when user click left mouse on "TurnMusic" menu, a checked sign is displayed on that. I write this code : void CMenusDlg::OnUpdateOptionTurnMusic(CCmdUI* pCmdUI) { // TODO: Add your command update UI handler code here pCmdUI->SetCheck(TRUE); MessageBox("Checked !","Try Menus",MB_OK); } but: when the program is runned, the checked sign is not displayed and MessageBox is excuted ofcourse! If i write that Application in form SDI then checked sign is displayed normally. this is occured similarly when i using hotkey in menu (or is called : Accelerator) Why ??? now, i want to write my Application in form "Dialog" How must i do ? Could you help me, please !!! Lgx

    M 1 Reply Last reply
    0
    • S Surivevoli

      :confused:I write a application in form "Dialog" using Menus: Option * TurnMusic I want that : when user click left mouse on "TurnMusic" menu, a checked sign is displayed on that. I write this code : void CMenusDlg::OnUpdateOptionTurnMusic(CCmdUI* pCmdUI) { // TODO: Add your command update UI handler code here pCmdUI->SetCheck(TRUE); MessageBox("Checked !","Try Menus",MB_OK); } but: when the program is runned, the checked sign is not displayed and MessageBox is excuted ofcourse! If i write that Application in form SDI then checked sign is displayed normally. this is occured similarly when i using hotkey in menu (or is called : Accelerator) Why ??? now, i want to write my Application in form "Dialog" How must i do ? Could you help me, please !!! Lgx

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

      I already answered your initial question[^]. Did you try it?

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