PaintWhileLoad example for C++ Builder
This example causes the LEAD RasterView control to paint the image as it loads.
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
LEADRasterView1->AutoRepaint = False;
LEADRasterView1->AutoSetRects = True;
LEADRasterView1->PaintSizeMode = PAINTSIZEMODE_FIT;
LEADRasterView1->PaintWhileLoad = True;
pRasterIO->Load (LEADRasterView1->Raster, AnsiToOLESTR("v:\\images\\image1.cmp"), 0, 0, 1);
pRasterIO-> Release();