?
Solved

Enter Key press on an Edit Control

Posted on 1998-08-25
2
Medium Priority
?
424 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 150 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

764 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