ReadyState Example for C++ 5.0 and later

This example shows how to use the ReadyState property to test whether an asynchronous load is in progress.

NOTE: This is not a complete example for handing events, some steps have been omitted. For a complete example of how to handle events, refer to the example Updating a Gauge and Detecting a User Interrupt.

if (m_pRasterIO->GetReadyState() == READYSTATE_LOADING)
   MessageBox (TEXT("Still loading the image"), TEXT("Notice"), MB_OK);