AtlAxCreateControlEx
Visual Studio 2012
Creates an ActiveX control, initializes it, and hosts it in the specified window. An interface pointer and event sink for the new control can also be created.
Important
|
|---|
|
This function cannot be used in applications that execute in the Windows Runtime. |
ATLAPI AtlAxCreateControlEx( LPCOLESTR lpszName, HWND hWnd, IStream* pStream, IUnknown** ppUnkContainer, IUnknown** ppUnkControl, REFIID iidSink = IID_NULL, IUnknown* punkSink = NULL );
AtlAxCreateControlEx is similar to AtlAxCreateControl but also allows you to receive an interface pointer to the newly created control and set up an event sink to receive events fired by the control.
To create a licensed ActiveX control, see AtlAxCreateControlLicEx.
Important