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 does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


what is message Testing ?

1 Answers   L&T,


Explain about MDI and CMultiDocTemplate ?

2 Answers  


What is CSingleDocTemplate?

1 Answers  


What interface must be supported by an ActiveX control?

2 Answers  






Explain in sort What is CTargetObject?

2 Answers  


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  


Can you explaing the relashionship between document,frame and view ?

2 Answers  


What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required

3 Answers   Patni,


1)does Frame Thickness in MFC?

1 Answers   winfoware,


Does the application have more than one object? If no, then what is the reason?

5 Answers  


Categories