Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CEdit

Posted on 1998-08-13
4
Medium Priority
?
304 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
  • 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 800 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

927 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