
ATL Composite control, no creation or activation in VC++
You should implement OnDraw to provide a metafile representation
of your control for offline containers like VC resource editor, which
don't activate your control no matter what you want :)... You should
draw the inner controls by hand as best as you want them... (meet some
good ol' GDI :)...)
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
Quote:
> I have created an ActiveX control using as ATL composite control as a
> base. The control works in VB, FrontPage and Interdev. But when I
> insert it into a dialog box or another composite control in VC++, all I
> get is a grey box with the words "ATL Composite Control" drawn inside.
> The control seems to have not been created or activated so I have no
> HWND. I'm obviously doing something wrong, but what? Any help would be
> much appreciated.
> Thanks,
> Chris Snyder
> Sent via Deja.com http://www.deja.com/
> Before you buy.