I do not think so.
You have to have MFC object instantiated first in order to have ability to
attach window to it.
It can be existing window that you attach by calling SubclassWindow or
Attach in order for MFC object to map (attach) window’s handle.
If window does not exist you call Create that in turn calls API
implementation of the Create. Then new window’s handle is mapped into MFC
object.
Therefore it is always that you attach window to MFC object. Object is using
existing window and is aware of it. Windows window does not have the
slightest idea about any MFC let alone MFC object. Another words, you do not
use any Windows’ function to attach MFC object to it.
:)
Post by David LowndesPost by RainManI think is the other way around. Window is attached to a class’ object by
means of performing SubclassWindow in DDX_Control.
It depends which way you look at it. :)
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq