i
i
i
i
i
i
i
i
E
An MFC
Template
Program
In programs that use the Microsoft Foundation Class (MFC) library, the el-
ements of message loop, window class and message processing function de-
scribed in Appendix D are hidden inside the library classes. The application
programmer is thus mainly concerned with only having to write code to re-
spond to the messages of interest to them. This is done in short handler
functions without the need for the big switch/case statement. This program-
ming model is somewhat similar to that used in Visual Basic. For example,
one might want to process m ouse button clicks and/or respond to a menu
command. These functions are formed by deriving application-specific C++
classes from the base MFC classes.
The MFC is based on the object-orientated ...