This method creates an ActiveX control, initializes it, and hosts it in the specified window. The second version of this method creates an HTML control and binds it to the resource identified by dwResID.
At a Glance
Header file: | Atlwin.h |
Windows CE versions: | 2.10 and later |
Complete documentation: | Visual C++ documentation |
Syntax
HRESULT CreateControl( LPCOLESTR lpszName, IStream* pStream = NULL, IUnknown** ppUnkContainer = NULL );
HRESULT CreateControl( DWORD dwResID, IStream* pStream = NULL, IUnknown** ppUnkContainer = NULL );