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

How to handle dynamic menus in MFC?

3 Answers   HCL,


How to update all the views whenver document got updated ?

1 Answers  


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


Hi can anyone explain about the synchronization objects types and where we are using in the code.

1 Answers  


1)does Frame Thickness in MFC?

1 Answers   winfoware,






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

3 Answers   E Logic,


what is the updated verssion in vc++

3 Answers   Aspect,


Do you have an idea about MFC?

0 Answers   C DAC, CDAC,


What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


What is the difference between the SDI and MDI

3 Answers   Invensys,


Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);

2 Answers  


19)how to set Back Ground Picture to a Dialog Box in MFC ?

1 Answers  


Categories