[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

"Delete" key processing

Posted on 1998-07-06
3
Medium Priority
?
195 Views
Last Modified: 2013-12-03
win 95 vis c++ 4.1 MFC application

I am using a formview containing many buttons and an "input" box. i wish to allow the user to delete an "input box" entry using the delete key...and this works automatically...however, the program does not "receive" the fact of the the "delete" key depression., no matter how i try.
How do i set the formview to receive notification of the delete key?
0
Comment
Question by:rich135
[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
3 Comments
 

Expert Comment

by:deedge
ID: 1409512
I'm not sure if I know what you mean by the fact that is works automatically, but then it doesn't work at all.... But, have you tried to receive the WM_KEYUP message. Then check to see if the input box has the focus, and then check to see which key was pressed. If it was the DEL key (have to look it up in the ASCII table) remove the entry?
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 120 total points
ID: 1409513
The WM_CHAR, WM_KEYDOWN, and WM_KEYUP messages are sent to the edit control itself because it has the input focus. If you want to receive the actual keystroke message, you msut subclass the edit control and handle it yourself.

If you want to know that the edit control has changed its content, look for the EN_CHANGE or EN_UPDATE messages, as appropriate. They're sent from the control to the window that owns the control, so you can simply use ClassWizard to hook up handlers for the messages.

B ekiM
0
 

Author Comment

by:rich135
ID: 1409514
good work , mike. The en change did it.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

649 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