Share via


CComControlBase::m_spInPlaceSite

A pointer to the container's IOleInPlaceSite, IOleInPlaceSiteEx, or IOleInPlaceSiteWindowless interface pointer.

CComPtr<IOleInPlaceSiteWindowless> m_spInPlaceSite;

Remarks

Note

To use this data member within your control class, you must declare it as a data member in your control class. Your control class will not inherit this data member from the base class because it is declared within a union in the base class.

The m_spInPlaceSite pointer is valid only if the m_bNegotiatedWnd flag is TRUE.

The following table shows how the m_spInPlaceSite pointer type depends on the m_bWndLess and m_bInPlaceSiteEx data member flags:

m_spInPlaceSite Type

m_bWndLess Value

m_bInPlaceSiteEx Value

IOleInPlaceSiteWindowless

TRUE

TRUE or FALSE

IOleInPlaceSiteEx

FALSE

TRUE

IOleInPlaceSite

FALSE

FALSE

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class

CComPtr Class