IQuickActivateImpl

template< class T >
class IQuickActivateImpl

Parameters

T Your class, derived from IQuickActivateImpl.

The IQuickActivate interface helps containers avoid delays when loading controls by combining initizalizations in a single call. The QuickActivate method allows the container to pass a pointer to a QACONTAINER structure that holds pointers to all the interfaces the control needs. On return, the control passes back a pointer to a QACONTROL structure that holds pointers to its own interfaces, which are used by the container. Class IQuickActivateImpl provides a default implementation of IQuickActivate and implements IUnknown by sending information to the dump device in debug builds.

Related Articles ATL Tutorial, Creating an ATL Project

#include <atlctl.h>

See Also CComControl


IQuickActivateImpl Class Members

IQuickActivate Methods
GetContentExtentGets the extent of a full rendering of the control within the container.
QuickActivatePerforms quick initialization of controls being loaded.
SetContentExtentInforms the control how much display space the container has assigned to it.

IQuickActivateImpl Overview


Methods


IQuickActivateImpl::GetContentExtent

HRESULT GetContentExtent( LPSIZEL pSize );

See IQuickActivate::GetContentExtent in the Win32 SDK.

Remarks

Retrieves the current display size for a running control. The size is for a full rendering of the control and is specified in HIMETRIC units.

IQuickActivateImpl Overview | Class Members

See Also IQuickActivateImpl::SetContentExtent


IQuickActivateImpl::QuickActivate

HRESULT QuickActivate( QACONTAINER* pQACont, QACONTROL* pQACtrl );

See IQuickActivate::QuickActivate in the Win32 SDK.

Remarks

With the QuickActivate method, the container passes a pointer to a QACONTAINER structure. The structure contains pointers to interfaces needed by the control and the values of some ambient properties. Upon return, the control passes a pointer to a QACONTROL structure that contains pointers to its own interfaces that the container requires, and additional status information.

IQuickActivateImpl Overview | Class Members


IQuickActivateImpl::SetContentExtent

HRESULT SetContentExtent( ( LPSIZEL pSize );

See IQuickActivate::SetContentExtent in the Win32 SDK.

Remarks

Informs a control of how much display space the container has assigned to it. The size is specified in HIMETRIC units.

IQuickActivateImpl Overview | Class Members

See Also IQuickActivateImpl::GetContentExtent