I am a bit confused about the difference between events and messages in mfc. Are they the same?
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With