I am a bit confused about the difference between events and messages in mfc. Are they the same?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you specifically ask about MFC, I assume you mean the event handlers and message handlers that you can define in the properties windows of a MFC class.
Under ‘events’ you can define:
Under ‘messages’ you can define message handlers for other Windows messages.
See also some explanation in msdn
In Win32 terms, both the events handlers and and message handlers, are in fact message handlers.
The other answers explain the difference between Windows events (unrelated to the MFC ‘events’ described above), and Windows messages (correspond to both ‘events’ and ‘messages’ described above).
If you think that this is a bit confusing, I completely agree…