In my game i have one button "{GO FOR IT) " which causes bit maps to display. If i hit it once with the mouse cursor, the button can then be activated with the space bar. I assume this is some kind of windows default My question is how can i change the key associated with the button, or even better, how can i associate a key with the button without first having to use the mouse cursor.

Thanx for any suggestions.

:alright:
Posted on 2002-05-15 16:33:41 by titan
Trap WM_KEYDOWN in your main window proc and then perfrom the same action as if the button had been pressed.
Posted on 2002-05-15 16:39:27 by Kudos