Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Detect Keyboard key press using VC6.0

Status
Not open for further replies.

KH

Junior Member level 1
Joined
Nov 1, 2004
Messages
15
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
103
onkeydown() in cdialog + vc6.0

I wrote a simple dialog based program using MFC wizard to detect any key press, but the program is not responding to any key pressed. What is missing ?

Below is the message handle codes, the empty function is created using ClassWizard

void CTestingDlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
MessageBox("Key pressed", "Error", MB_ICONERROR | MB_OK);
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}

Thanks.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top