|
-
October 19th, 1999, 02:11 PM
#1
CEdit and Return Key
Hi,
I have an EditBox and a button control. I want changes in editBox to be applied (but calling OnButtonClick)
when the user hits the return key. The problem is that, as the Ok button is the default button, the dialog is closed
as soon as we press enter. I tried to change the button style (using BS_DEFPUSHBUTTON) but this doesn't
work. I tried also to subclass the edit control and trap the VK_RETURN in the onChar() member function but
this doesn't work either.
Can you help me?
--
Where there is a WISH, there is a WILL.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|