Hello,
Sorry to bring this up again, but none of the previous suggestions on this BBS could help me out in this situation.
I have a DDT form with NOTHING but labels on it. I need to catch the keystrokes (numbers 0-9, left and right, and then change the labels.
I don't/can't have any controls with the focus set to them, so I can't subclass to catch the messages.
I can't figure out how to use the keyboard accelerators in a DDT callback. Without using DDT everything is fine. The function TranslateAccelerator needs a tagMSG parameter, but the CBMSG keyword returns only the message part of the tagMSG. How do I get the full message tag in my callback?
I'd be happy to use either keyboard accelerators or catch KEYDOWN messages as long as one of them would work! I don't like the idea of hidden controls... kind of patchy for my liking, but if it is the only way I guess that's what I have to do.
Thanks,
Colin Schmidt
-------------
Colin Schmidt & James Duffy, Praxis Enterprises, Canada
Sorry to bring this up again, but none of the previous suggestions on this BBS could help me out in this situation.
I have a DDT form with NOTHING but labels on it. I need to catch the keystrokes (numbers 0-9, left and right, and then change the labels.
I don't/can't have any controls with the focus set to them, so I can't subclass to catch the messages.
I can't figure out how to use the keyboard accelerators in a DDT callback. Without using DDT everything is fine. The function TranslateAccelerator needs a tagMSG parameter, but the CBMSG keyword returns only the message part of the tagMSG. How do I get the full message tag in my callback?
I'd be happy to use either keyboard accelerators or catch KEYDOWN messages as long as one of them would work! I don't like the idea of hidden controls... kind of patchy for my liking, but if it is the only way I guess that's what I have to do.
Thanks,
Colin Schmidt
-------------
Colin Schmidt & James Duffy, Praxis Enterprises, Canada
Comment