Skip to Content
ATL Internals: Working with ATL 8, Second Edition
book

ATL Internals: Working with ATL 8, Second Edition

by Christopher Tavares, Kirk Fertitta, Brent Rector, Chris Sells
July 2006
Intermediate to advanced content levelIntermediate to advanced
888 pages
22h 24m
English
Addison-Wesley Professional
Content preview from ATL Internals: Working with ATL 8, Second Edition

Message Reflection and Forwarding

In many cases, Windows controls send messages to their parent windows: when a button is clicked, when a treeview item is expanded, or when a list-box item is selected, for example. These messages are usually the result of user action, and the parent window is often the best place to handle the user’s request.

Other messages are also sent to the parent window. These messages are sent not as the result of a user’s action, but as a way for the parent window to customize something about the control’s operation. The classic example is the WM_CTLCOLORXXX set of messages, which are sent to the parent window to allow it to change the default colors when a control draws. Handling such messages is fairly easy. For example, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

.NET and COM: The Complete Interoperability Guide

.NET and COM: The Complete Interoperability Guide

Adam Nathan
Mastering Windows® 7 Deployment

Mastering Windows® 7 Deployment

Aidan Finn, Darril Gibson, Kenneth van Surksum

Publisher Resources

ISBN: 0321159624Purchase book