I want to implement some action when CTRL-A is pressed . How can I do this in C++ on Windows Platform . I am using VS 2005 .
Any pointers will help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to define a Keyboard Accelerator table in your resources, and then make sure you call TranslateAccelerator in your message loop. See MSDN for full details.
If you’re using a framework (eg. MFC) then it will have its own way of wrapping accelerators – you need to look them up in the documentation of the framework you’re using.