Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

Summary

In this chapter, you learned about the event-driven programming model that is central to most Windows applications. Most communication from the operating system to an application takes place via messages, which come in several different flavors. For example, control notification messages are used to notify the owner of a control that an interesting event has occurred. Command messages notify an application that a menu or other command item has been selected. In addition each window receives a large number of messages from the operating system whenever the window needs to be notified of an external event.

The MFC class library simplifies message handling by supplying message maps, which greatly reduce the amount of code that must be written to handle a message. ClassWizard is tightly integrated with the MFC message map architecture, which allows you to add a message-handling function to a specific class in your project with a few mouse clicks.

Share ThisShare This

Informit Network