Solved

Enter Key press on an Edit Control

Posted on 1998-08-25
2
417 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
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now