Available in the LEADTOOLS Imaging toolkit. |
RefBitmapList example for C++ 4.0 and later
// tell m_Lead1 to "steal" the bitmap list from m_Lead2
m_Lead1.SetRefBitmapList(TRUE);
// move the bitmap list from m_Lead2 to m_Lead1
m_Lead1.SetBitmapList(m_Lead2.GetBitmapList());
// restore the default value for RefBitmapList
m_Lead1.SetRefBitmapList(FALSE);
// for safety, let m_Lead2 know that its list has been emptied
m_Lead2.SetBitmapList(NULL);