Help with adding Keyboard shortcuts

Hi Everyone,

I am very new to programming in Visual C++. However, I am finding it to be quiet interesting. I am working on a project in wish I had to develop GUI's,. I have implemented the GUI with some buttons included. One task that is currently beating  me is implementing a keyboard shortcut. I have a botton called "RUN" and want to use "ALT+R" to invoke the run button. Can anyone kindly help me with this. I have tried doing this with Java and it works but I don't know of any C++ function that will perfor this task. Can a C++ gaint help me out

Thanks in advance.




Answer this question

Help with adding Keyboard shortcuts

  • rnv

    What technology are you using MFC, win32 APIs, winforms, etc..

    Thanks,
    Ayman Shoukry
    VC++ Team


  • sansliguy

    I am Using MFC

  • Mike408

    Take a look at http://msdn2.microsoft.com/en-us/library/a44z43es.aspx if that helps.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • using Drinks.Vodka.Martini

    Ayman Shoukry wrote:

    What technology are you using MFC, win32 APIs, winforms, etc..

    Thanks,
    Ayman Shoukry
    VC++ Team

    Is there anyway for me to apply "R" : "&Run" to cause ALT+R to invoke the run command



  • Help with adding Keyboard shortcuts