Share via


COleControl::InternalSetReadyState

Sets the readiness state of the control.

void InternalSetReadyState( 
   long lNewReadyState  
);

Parameters

  • lNewReadyState
    The readiness state to set for the control, one of the following values:

  • READYSTATE_UNINITIALIZED
    Default initialization state

  • READYSTATE_LOADING
    Control is currently loading its properties

  • READYSTATE_LOADED
    Control has been initialized

  • READYSTATE_INTERACTIVE
    Control has enough data to be interactive but not all asynchronous data is yet loaded

  • READYSTATE_COMPLETE
    Control has all its data

Remarks

Most simple controls never need to differentiate between LOADED and INTERACTIVE. However, controls that support data path properties may not be ready to be interactive until at least some data is received asynchronously. A control should attempt to become interactive as soon as possible.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::FireReadyStateChange

COleControl::GetReadyState