Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
How do I implement Virtual Key Handlers in MFC without the Class Wizard. Where are the Message Map Macro's and the Handler Declarations?
Posted
Updated 5-May-10 21:10pm
v2

1 solution

In the header file, withing the class declaration, use the macro DECLARE_MESSAGE_MAP()

In the cpp file put the following macros -
BEGIN_MESSAGE_MAP(CDerivedClass, CBaseClass)
    ON_WM_KEYDOWN()
END_MESSAGE_MAP()
 
Share this answer
 
Comments
Bram van Kampen 8-May-10 20:28pm    
you answered my question correctly, which led me to:
'http://www.codeproject.com/KB/dialog/pretransdialog01.aspx?msg=1897183'

(Sorry tried several times, but, cp does not allow to ad links.)

Issue Resolved!!, and Many Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900