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 |
What is the difference between OnInitialUpdate and OnUpdate?
How to access document object from view ?
What is stack size in win32 program?
How to handle RTTI in MFC ?
What four types of properties are supported by an ActiveX control?
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
Tell us something about MFC?
What is #progma and where it is used?
What is the base class for MFC Framework ?
if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?
Which MFC function is used to display output?
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?