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. System menu activation from a CDialogBar

System menu activation from a CDialogBar

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++tutorial
1 Posts 1 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.
  • B Offline
    B Offline
    bigjim
    wrote on last edited by
    #1

    I have an MFC MDI application that includes a CDialogBar. Inside the CDialogBar there is a CTabCtrl that hosts a bunch of dialog boxes. The problem that I am having is: How do I make Alt-F open the system menu when the focus is in one of the dialogs on the CDialogBar? I have handled the WM_MENUCHAR message in my CMainFrame class and I get notification there, but I haven't figured out how to make the menu open normally. Is this the right way to do this? Is there a better way to handle mnemonics in this situation? I need to make all the mnemonics work no matter where they are, and no matter where the focus currently is. Any help would be greatly appreciated. Thanks!

    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