Implementing a Window
Class CWindowImpl allows you to implement a window and handle its messages. Message handing in ATL is based on a message map. This section explains:
How to add a message handler to a control.
What message maps are and how to use them.
The syntax for message handler functions.