ATL Composite control, no creation or activation in VC++ 
Author Message
 ATL Composite control, no creation or activation in VC++

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.*-*-*.com/
Before you buy.



Wed, 16 Apr 2003 03:57:32 GMT  
 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.



Sat, 19 Apr 2003 02:27:41 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ATL Full Control - mouse activation problems in Composite Control

2. ATL Full Control - mouse activation problems in Composite Control

3. question about ATL composite control creation

4. Using ActiveX controls in ATL Composite control

5. Message Handling - Controls - ATL Composite Controls

6. How to invoke methods of contained ActiveX control from ATL Composite Control

7. mfc control in atl composite control wont destruct

8. Standard Windows Controls in ATL Composite Control

9. mfc control instantiated in atl composite control using CAxWindow wont destruct

10. A composite control calling another composite control in web browser

11. Composite control hosted by a composite control.

12. VC7 ATL Composite Control bug?

 

 
Powered by phpBB® Forum Software