
Re-use ATL GUI component in another ATL GUI component
Thanks for the KB article references - I had come to the conclusion that I
needed to become a Container but didn't want to start digging such a large
hole if I didn't have to!
Quote:
> See KB Article Q218442 "HOWTO: Dynamically Add ActiveX Controls to ATL
> Composite Control" and Q192560 "HOWTO: Adding ATL Control Containment
> Support to Any Window"
> --
> With best wishes,
> Igor Tandetnik
> "For every complex problem, there is a solution that is simple, neat,
> and wrong." H.L. Mencken
> > I've written a few ATL GUI components that are working well on their
> own.
> > However, I need to improve upon one so that it may include the
> capability of
> > another.
> > One of them is a grid control which allows in-cell editing. Currently,
> I've
> > only used standard Windows controls (edit, updown, combo, etc.) for my
> work
> > up until now. I create an instance of each of these by using
> CreateWindow...
> > What I'd like to do is re-use one of my existing ATL components as an
> > in-cell edit facility!
> > What sort of updates would I have to do (and is it possible within the
> scope
> > of the controls) to dynamically instantiate one of my ATL components
> from my
> > main ATL component? I would need to be able to get it to display it's
> GUI,
> > be positioned correctly and not forgetting must be able to implement
> the
> > Connection Point sink interface to pick up when 'data' has been
> completed.
> > All components are write with VC++ 6 with ATL 3. No MFC is available
> (or
> > indeed wanted as these are lightweight controls with zero
> dependancies).
> > Thanks in advance!