Compartilhar via


CAxWindow2T::Create

Creates a host window.

HWND Create( 
   HWND hWndParent,  
   _U_RECT rect = NULL,  
   LPCTSTR szWindowName = NULL,  
   DWORD dwStyle = 0,  
   DWORD dwExStyle = 0, 
   _U_MENUorID MenuOrID = 0U,  
   LPVOID lpCreateParam = NULL 
);

Remarks

CAxWindow2T::Create calls CWindow::Create with the LPCTSTR lpstrWndClass parameter set to the window class that provides control hosting (AtlAxWinLic80).

See CWindow::Create for a description of the parameters and return value.

Note   If 0 is used as the value for the MenuOrID parameter, it must be specified as 0U (the default value) to avoid a compiler error.

Example

See Hosting ActiveX Controls Using ATL AXHost for a sample that uses CAxWindow2T::Create.

Requirements

Header: atlwin.h

See Also

Reference

CAxWindow2T Class