Solved

Dialog based application

Posted on 1999-01-10
2
167 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 112
difference between String.subString() and String.subSequence() 6 258
Line meaning 9 89
changeXy challenge 13 93
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

685 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