I am a little confused by the difference in events and messages in mfc. They are the same?
Since you specifically ask a question about MFC, I assume that you mean event handlers and message handlers that you can define in the property windows of the MFC class.
In the "events" section you can define:
In the "Messages" section, you can define message handlers for other Windows messages.
See also some explanations in msdn
Win32, , , .
Windows ( MFC), ) Windows ( "", "", ).
, , ...
Win32, :
- , . : . , ( WaitForSingleObject ) API SetEvent.
user32 , : , , ,...
. .
.
, . - - CreateEvent(). ; . ( , ). , , , , . , , Wait() .
, , - . , - , . , - , Wait(), .
, .
, " ", , , . ( ), . , - , - . , , , - , - , , . ( , , , - ).
Dani is correct: in the MFC world, an βeventβ is associated with a control and is transmitted through the WM_COMMAND message. "Message" is a broader term that covers all Windows messages. For an example, see msdn docs for BN_CLICKED .
This is a sad overload of the term βevent,β which is quite confusing. This is not due to events in the wider Win32 world that are objects of kernel synchronization.
Source: https://habr.com/ru/post/1705536/More articles:Specify the minimum number of buckets when creating boost :: unordered_map - c ++How can I inherit Hibernate filters with annotations? - javaGetting Started with Ruby Gem Development - ruby ββ| fooobar.comHow do you load the built-in assemblies that you put in your main assembly? - c #Dynamically loaded control - how can I access a value in Page_Init - eventsCan I control the download icon of a web browser? - javascriptHow to track downloads from the Eclipse update site? - eclipsetire and test coverage analysis? - chttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705540/is-it-possible-to-limit-google-maps-to-display-only-a-given-country&usg=ALkJrhjpufw4CGVOrKqbJPfTBCuZQ1nr9Qcomparison of algorithms in C, what's the difference? - cAll Articles