Which ATL Classes Facilitate ActiveX Control Containment?



Which ATL Classes Facilitate ActiveX Control Containment?..

Answer / mushtaq ahmad

Which ATL Classes Facilitate ActiveX Control Containment?

ATL's control-hosting code doesn't require you to use any
ATL classes; you can simply create an "AtlAxWin80" window
and use the control-hosting API if necessary (for more
information, see What Is the ATL Control-Hosting API?).
However, the following classes make the containment
features easier to use.

Class Description
CAxWindow
Wraps an "AtlAxWin80" window, providing methods for
creating the window, creating a control and/or attaching a
control to the window, and retrieving interface pointers on
the host object.

CAxWindow2T
Wraps an "AtlAxWinLic80" window, providing methods for
creating the window, creating a control and/or attaching a
licensed control to the window, and retrieving interface
pointers on the host object.

CComCompositeControl
Acts as a base class for ActiveX control classes based on
a dialog resource. Such controls can contain other ActiveX
controls.

CAxDialogImpl
Acts as a base class for dialog classes based on a dialog
resource. Such dialogs can contain ActiveX controls.

CWindow
Provides a method, GetDlgControl, that will return an
interface pointer on a control, given the ID of its host
window. In addition, the Windows API wrappers exposed by
CWindow generally make window management easier.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ATL Interview Questions

How to Implement multiple dual interfaces ?

2 Answers  


How to Load Controls Specified at Run Time?

1 Answers  


How to Obtain data from the client via an outgoing event dispinterface in ATL ?

0 Answers  


what is proces ?

5 Answers   OfficeNet,


What problems might be encountered when using _ATL_MIN_CRT? What causes the linker error that _main is unresolved during Release builds?

2 Answers  






Why is the put_Font or putref_Font method not called when an ActiveX control's Font property is changed by the ActiveX Control Pad?

0 Answers  


How to Reuse interface implementation in source in ATL projects ?

1 Answers   Syntel,


how to create SDK based ATL ? how to create SDK based COM?

1 Answers   TCS,


What DLLs needed to ship with control?

1 Answers   WNS,


Which ATL Classes Facilitate ActiveX Control Containment?

1 Answers  


What are the reasons an ATL server might fail to register?

1 Answers  


sap hana online training in USA UK CANADA INDIA AUSTRALIA

1 Answers   SAP Labs,


Categories