ReadyState Example for C++ 4.0 and later

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

if (m_Lead1.GetReadyState() == READYSTATE_LOADING)
   MessageBox ("Still loading the image", "Notice", MB_OK);