AtlAxCreateControlEx

ATLAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd, IStream* pStream, IUnknown** ppUnkContainer, IUnknown** ppUnkControl, REFIID iidSink=IID_NULL, IUnknown* punkSink=NULL);

Parameters

lpszName

A pointer to a string to be passed to the control. Must be formatted in one of the following ways:

hWnd

[in] Handle to the window that the control will be attached to.

pStream

[in] A pointer to a stream that is used to initialize the properties of the control. Can be NULL.

ppUnkContainer

[out] The address of a pointer that will receive the IUnknown of the container. Can be NULL.

ppUnkControl

[out] The address of a pointer that will receive the IUnknown of the created control. Can be NULL.

iidSink

The interface identifier of an outgoing interface on the contained object.

punkSink

A pointer to the IUnknown interface of the sink object to be connected to the connection point specified by iidSink on the contained object after the contained object has been successfully created.

Remarks

Creates an ActiveX control, initializes it, and hosts it in the specified window, similar to AtlAxCreateControl.

ATL Macros and Global Functions

See Also

Composite Control Fundamentals