Solved

Dialog based application

Posted on 1999-01-10
2
166 Views
Last Modified: 2013-11-20
The dialog has some edit controls. When ever I press the INSERT key the execution  control should go to some function that is defined by me.How to write code for this key?
Note: The application is  dialog based  VC++ application.
0
Comment
Question by:chowdary010899
2 Comments
 

Author Comment

by:chowdary010899
ID: 1327475
Please send as earley as posible
0
 
LVL 4

Accepted Solution

by:
pagladasu earned 0 total points
ID: 1327476
Use claswwizard and override the PreTranslateMEssage() as follows:

BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
      // TODO: Add your specialized code here and/or call the base class
      if(pMsg->message==WM_KEYDOWN){
            if(pMsg->wParam==VK_INSERT)
                  MessageBox("INSERT PRESS");//call your own function
      }
      return CDialog::PreTranslateMessage(pMsg);
}

hope this helps
pagladasu
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 92
zeroFront challenge 7 111
Detect file exist or not 3 178
moto 4g phone enable finger print 4 26
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 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