Hello,
I'm working on a vehicle model with a 3-D view. It's too hard to drive using mouse clicks on buttons.
I've searched through the forums for info on processing key strokes and am lost. Using "Programming Windows 95" as a reference, I still am having problems.
I'm using DDT, and tried getting a key press by capturing %WM_CHAR in the main dialog callback function. The WParam is supposed to be the ASCII code for the key (right?).
This attempt is just the latest of many. This main dialog is Modal. Since the program beeps anytime a key is pressed at all, regardless of whether I try to capture anything or not, I haven't continued beyond this. There's numerous postings on this type of thing throughout the forum, and I'd be happy to look at any of them. What should I be looking for? Do I need to (trembling in fear) sub class something? I'd like to use the keypad here, but getting any keys at all to work would be fine.
Thanks!
[This message has been edited by Todd Wasson (edited May 16, 2000).]
I'm working on a vehicle model with a 3-D view. It's too hard to drive using mouse clicks on buttons.

I'm using DDT, and tried getting a key press by capturing %WM_CHAR in the main dialog callback function. The WParam is supposed to be the ASCII code for the key (right?).
Code:
CALLBACK FUNCTION Maincallback() SELECT CASE CBMSG CASE %WM_CHAR IF CBWPARAM= ASC("A") THEN INCR SOMETHING END IF CASE %WM_TIMER CALL DRAW_STUFF() END SELECT END FUNCTION
Thanks!
[This message has been edited by Todd Wasson (edited May 16, 2000).]
Comment