Compartilhar via


COleControlContainer::AttachControlSite

Called by the framework to create and attach a control site.

virtual void AttachControlSite(
   CWnd* pWnd,
   UINT nIDC = 0 
);
void AttachControlSite(
   CWnd* pWnd,
   UINT nIDC = 0 
);

Parameters

  • pWnd
    A pointer to a CWnd object.

  • nIDC
    The ID of the control to be attached.

Remarks

Override this function if you want to customize this process.

Observação

Use the first form of this function if you are statically linking to the MFC library. Use the second form if you are dynamically linking to the MFC library.

Requirements

Header: afxocc.h

See Also

Reference

COleControlContainer Class

Hierarchy Chart

Other Resources

COleControlContainer Members