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

what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


What is userdefine Messages in MFC?

1 Answers   HCL,


Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


how do u identify RTTI in vc++

4 Answers   Siemens,


visual Pogramming c++ coding for create a paint application.. (Please someone help me)

2 Answers  


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,


What is CArchive class dowes?

4 Answers  


1)How to create ToolTip in MFC?

2 Answers  


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


What is the size of class

18 Answers   Aircom,


How to update windows title bar dynamically?

7 Answers   HCL,


List out the parameters of WinMain Function.

2 Answers   Mphasis,


Categories