Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why do I get a WM_CHAR message with char code 3 when I press Ctrl + C?

I have a simple Win32 desktop application listening the keyboard message.
When I press Ctrl + C, I got the following message sequence:

WM_DOWN  Ctrl
WM_DOWN  C
WM_CHAR wParam=3
WM_UP  Ctrl
WM_UP  C

Why do I get a WM_CHAR message whose char code is 3?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Historical. "C" is the third letter of the alphabet. Ctrl-B is 2.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading