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 ?    11 Yes 0 No

Post New Answer

More MFC Interview Questions

How to handle command line arguements from simple MFC application ?

2 Answers   TCS,

Whats is DDX & DDV in MFC?

1 Answers   HCL,

How can we create thread in MFC framework?

3 Answers  

What is LoadLibrary function returns?

7 Answers  

Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer

7 Answers   HP,

2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,

how can u change button shape at run time

3 Answers   Samsung,

how many types of classes are ther,what are that

7 Answers   L&T,

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

2 Answers   Mphasis,

how many types of messages are their

4 Answers   TCS, E Logic,

How many types of combo box are their

2 Answers   E Logic, Aaditya Info Solutions,

1)set the Title for The File DialogBox, in MFC?

1 Answers