
Subclassing controls in a composite control within the container class.
I am trying to create a composite control that has a number of regular
Win32 controls on my form. I would like to intercept certain messages that
go to the windows contained within my control (some of the drag window
messages, for example), and perform actions on them, without having to take
on all of the functionality of the control (i.e. handling ALL of the
messages).
What I am lost on is whether or not I want to have contained windows, or
do I want to subclass the windows? The documentation in MSDN indicates that
there is a distinct difference.
How would I go about this?
The reason I want to do this to handle drag and drop window's messages
that might be sent to an edit control on my composite control.
Thanks in advance.
--
- Nicholas Paldino