CComCompositeControl::Create

This method is called to create the control window for the composite control.

HWND Create(
   HWND hWndParent,
   RECT& /* rcPos */,
   LPARAM dwInitParam = NULL 
);

Parameters

  • hWndParent
    A handle to the parent window of the control.

  • rcPos
    Reserved.

  • dwInitParam
    Data to be passed to the control during control creation. The data passed as dwInitParam will show up as the LPARAM parameter of the WM_INITDIALOG message, which will be sent to the composite control when it gets created.

Return Value

A handle to the newly created composite control dialog box.

Remarks

This method is usually called during in-place activation of the control.

Requirements

Header: atlcom.h

See Also

Concepts

CComCompositeControl Class

CComCompositeControl Members

AtlAxCreateDialog

CComCompositeControl::CreateControlWindow