Solved

CEdit

Posted on 1998-08-13
4
300 Views
Last Modified: 2013-11-20
I create an edit box on a dialog box , and I want to get the last character typed without GetWindowText .
In Class Wizard I don't have the message WM_KEYDOWN for the Edit box, is only for the dialog box and I want
it for the Edit box
0
Comment
Question by:Prastie
[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
4 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1320777
You need to derive a class from CEdit and override OnKeyDown or OnChar. And associate this class to the edit control.
0
 

Author Comment

by:Prastie
ID: 1320778
How can I associate the new class to my edit control (Class Wizard cannot do that) ?
0
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1320779
Use the ClassWizard to associate the edit control to CEdit. Then just edit the header file of the dialog class and replace CEdit with your derived class name.
0
 
LVL 1

Expert Comment

by:hrumayor
ID: 1320780
20 points for this, to much
0

Featured Post

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

615 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