What is a message map, and what is the advantage of a
message map over virtual functions?



What is a message map, and what is the advantage of a message map over virtual functions?..

Answer / raju

Message Map is a logical table that maps the windows
messages to the member functions of the class.
Message map is to avoid following drawbacks:
1) Most windows only process a small number of messages,
yet each window require to giant virtual function table
with the entries of each message.
2) Virtual functions don't handle user defined messages and
other custom cases.

Is This Answer Correct ?    12 Yes 0 No

Post New Answer

More MFC Interview Questions

Given two processes, how can they share memory?

2 Answers   Microsoft,


1) create ToolTip in MFC?

2 Answers   HCL,


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


Explain Doc/View architecture

6 Answers   Huawei,


How to convert the content of buffer into lower case character.

3 Answers   E Logic,






what is the use of AFX_MANAGE_STATE ?

4 Answers   HCL,


Tell me about different kinds of synchranization objects ?

6 Answers  


Why not virtual functions to handle messages?

5 Answers  


What is socket?

3 Answers  


Why Array Index starts from Zero

30 Answers   HCL,


What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


How to update windows title bar dynamically?

7 Answers   HCL,


Categories