 Due to the large number of messages involved, providing a separate virtual function for each Windows message results in a prohibitively large vtable.MFC provides an alternative to the switch statement used in traditional Windows programs to handle messages sent to a window.A mapping from messages to member-functions may be defined so that when a message is to be handled by a window, the appropriate member function is called automatically.