Solved

CEdit

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 64
if loop in java 3 114
Line meaning 9 77
sumHeights  challenge 17 61
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 (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

19 Experts available now in Live!

Get 1:1 Help Now