|
-
April 21st, 1999, 05:59 AM
#1
Dialog based
hai ,
How do i trap the characters of the keyboard in a dialog based application.
I had tried WM-CHAR,WM_KEYDOWN,WM_KEYUP,WM_KEYPRESS,PreTransalateMessage
Its not working. Please help me
satish
-
April 21st, 1999, 06:41 AM
#2
Re: Dialog based
Normally PreTranslateMessage works well
Try this :
BOOL CTestDlg::PreTranslateMessage(MSG* pMsg)
{
if ( pMsg->message == WM_KEYDOWN || pMsg->message == WM_SYSKEYDOWN)
{
// To have information about key see WM_KEYDOWN message in help files
// Note that pMsg->wParam contains the virtual key code
}
return CDialog::PreTranslateMessage(pMsg);
}
-
April 21st, 1999, 07:43 AM
#3
Re: Dialog based
thanks Anonymous
Its working after i do the filtering part.
satish
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|