2

I have an Windows application treats Windows key events.
The application conveys the Windows Message.
When I hold down the Shift key, WM_KEYDOWN message occurs repeatedly.

I want to convey just one WM_KEYDOWN message, even though the Shift key is holding down.
Would you please let me know how to resolve this issue?

1 Answer 1

6

You can't. Inspect bit 30 of lParam to see if the message is a transition from up to down, or a repeat of down.

1
  • Thanks for your response, I got the sutructure of lParam and have learned that there is a bit 30 to indicate previous status of the key.
    – cnook
    Mar 26, 2012 at 4:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.