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

1)dynamic creation of a Button ?

2 Answers   TCS,


Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?

2 Answers   Sony,


What is the use of CObject::Dump function ?

4 Answers  


What is socket?

3 Answers  


how many types of messages are their

4 Answers   E Logic, TCS,






What is the difference between OnInitialUpdate and OnUpdate?

5 Answers  


Explain StretchBlt and BitBlt

1 Answers  


How do I create a dialog box in mfc?

0 Answers  


what is the updated verssion in vc++

3 Answers   Aspect,


Do you have an idea about MFC?

0 Answers   C DAC, CDAC,


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,


How we call a dialog in another dialog?

2 Answers  


Categories