ExportBitmapList Example for C++ 5.0 and later
void CDemoDlg::OnLoadFromFile()
{
m_RasterImgList1.LoadFromFile("c:\\image1.jpg", 0, 0, -1);
m_RasterImgList1.LoadFromFile ("c:\\image2.jpg", 0, 0, -1);
m_RasterImgList1.LoadFromFile ("c:\\image3.jpg", 0, 0, -1);
m_RasterImgList1.LoadFromFile ("c:\\image4.jpg", 0, 0, -1);
//Export All Items From Images List Control
m_RasterImgList1.ExportBitmapList(0, m_RasterImgList1.GetCount());
}
void CDemoDlg::OnImport()
{
m_RasterImgList2.ImportBitmapList(m_RasterImgList1.GetExportedBitmapList(), 0, 2, "Image1", "Imported From List1");
}