Solved

Enter Key press on an Edit Control

Posted on 1998-08-25
2
422 Views
Last Modified: 2013-11-19
Is there a way in MFC to trap the enter key press on an edit control ?
0
Comment
Question by:psapra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 1321274
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
 

Author Comment

by:psapra
ID: 1321275
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

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 66
lucky13 challenge 11 159
Change to event 1 129
Problem to open Excel file 15 227
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question