Solved

CEdit

Posted on 1998-08-13
4
295 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 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA "SendKeys" Syntax for Multiple Keystrokes 7 108
matchUp  challenge 6 64
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 572
unix example issues 18 90
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…

809 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