IRunnableObjectImpl

template< class T >
class IRunnableObjectImpl

Parameters

T Your class, derived from IRunnableObjectImpl.

The IRunnableObject interface enables a container to determine if a control is running, force it to run, or lock it into the running state. Class IRunnableObjectImpl provides a default implementation of this interface 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


IRunnableObjectImpl Class Members

IRunnableObject Methods
GetRunningClassReturns the CLSID of the running control. The ATL implementation sets the CLSID to GUID_NULL and returns E_UNEXPECTED.
IsRunningDetermines if the control is running. The ATL implementation returns TRUE.
LockRunningLocks the control into the running state. The ATL implementation returns S_OK.
RunForces the control to run. The ATL implementation returns S_OK.
SetContainedObjectIndicates that the control is embedded. The ATL implementation returns S_OK.

IRunnableObjectImpl Overview


Methods


IRunnableObjectImpl::GetRunningClass

HRESULT GetRunningClass( LPCLSID lpClsid );

See IRunnableObject::GetRunningClass in the Win32 SDK.

Remarks

Sets *lpClsid to GUID_NULL and returns E_UNEXPECTED.

IRunnableObjectImpl Overview | Class Members


IRunnableObjectImpl::IsRunning

virtual BOOL IsRunning( );

See IRunnableObject::IsRunning in the Win32 SDK.

Remarks

Returns TRUE.

IRunnableObjectImpl Overview | Class Members


IRunnableObjectImpl::LockRunning

HRESULT LockRunning( BOOL fLock, BOOL fLastUnlockCloses );

See IRunnableObject::LockRunning in the Win32 SDK.

Remarks

Returns S_OK.

IRunnableObjectImpl Overview | Class Members


IRunnableObjectImpl::Run

HRESULT Run( LPBINDCTX );

See IRunnableObject::Run in the Win32 SDK.

Remarks

Returns S_OK.

IRunnableObjectImpl Overview | Class Members


IRunnableObjectImpl::SetContainedObject

HRESULT SetContainedObject( BOOL fContained );

See IRunnableObject::SetContainedObject in the Win32 SDK.

Remarks

Returns S_OK.

IRunnableObjectImpl Overview | Class Members