You can use ClassView or the WizardBar to add a message handler (a member function that handles Windows messages) to a control, and map Windows messages to the message handler.
Adding a message handler in ATL is the similar to adding a message handler to an MFC class. See Adding a Message Handler in The Visual C++ Programmer's Guide for more information.
The following conditions apply only to adding an ATL message handler: