• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

Enter Key press on an Edit Control

Is there a way in MFC to trap the enter key press on an edit control ?
0
psapra
Asked:
psapra
1 Solution
 
jhanceCommented:
In the Resource Editor do two things:

Select the Edit Control in question and select it's properties:

1) Set it to be multi-line
2) Choose "Want Return"

Now it will trap the RETURN key.
0
 
psapraAuthor Commented:
What message handler gets invoked by pressing the RETURN key on the edit box ? Is it one of those that shows up in ClassWizard for an edit control or is it a separate one that I have to use ? Please let me know.

Thanks.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now