BitmapDataPathClosed example for Visual C++ 4.0 and later

BOOL bBmpClosed;

void CTestDlg::OnButton1()
{
    bBmpClosed = TRUE; 
    
    m_LEAD1.SetBitmapDataPath("http://www.leadtools.com/Home2/vertmkts/images/v14web.jpg");

    Sleep(1); 

    m_LEAD1.SetBitmapDataPath("http://www.leadtools.com/images/end-user.jpg");
}

void CTestDlg::OnBitmapDataPathClosedLeadctrl1()
{
   bBmpClosed = FALSE; 
}