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. Hot keys to CToolBar

Hot keys to CToolBar

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

    Hi, I need to assign hot keys - Ctrl + M etc. to my CToolBar class. How can I do that? I load the toolbar images, set the separtors and then set the button texts. This toolbar has been created by framework via CMainFrame class. Any pointers? Regards Misha Be the change you want to see.

    M 1 Reply Last reply
    0
    • M misha_grewal

      Hi, I need to assign hot keys - Ctrl + M etc. to my CToolBar class. How can I do that? I load the toolbar images, set the separtors and then set the button texts. This toolbar has been created by framework via CMainFrame class. Any pointers? Regards Misha Be the change you want to see.

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      buttons in toolbars are associated with commands/menus. you will simply need to add an accelerator in the resources.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      M 1 Reply Last reply
      0
      • M Maximilien

        buttons in toolbars are associated with commands/menus. you will simply need to add an accelerator in the resources.


        Maximilien Lincourt Your Head A Splode - Strong Bad

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

        Thanks Maximilien, I added accelerator in the main menu bar. But couldn't add it in the toolbar.. but it works.. Thanks a ton again Misha Grewal, Be the change you want to see

        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