|
From: Ramana K. <ra...@my...> - 2001-01-05 03:55:09
|
How do I make a PUSHBUTTON respond to a key?
For example, when you click File->Open in Dev-C++ you have a window to open
the file. If you press escape, the "Cancel" button is pressed and if you
press enter, the "Open" button is pressed.
How can I make a button I create respond to a key like this?
I make the button in the resources file in a dialog box:
...
PUSHBUTTON "Cancel",-1,0,0,100,15
...
When I make an item on a menu respond to a key, it is like this:
Myaccel ACCELERATORS
{
<key>,<ID>,VIRTKEY
}
Is there a similar thing for buttons?
Please note from my source code that I am using the Win32 API, but, if you
know of a way I can solve the problem that is different from this (and, of
course, works in Dev-C++) I would be happy to hear about it.
Thank you,
Xerchzkopfinc. Ramana Kumar (Ra...@my...)
ICQ# 93667117
To get paid for surfing the 'net please visit
https://www.alladvantage.com/joinsecure.asp?refid=jpn471&cntry=1
|