AnnSetSecondaryBitmap example for Visual C++ 4.0 and later

long hPushPin;
   m_Lead1.AnnSetSecondaryBitmap (hPushPin, m_Lead2.GetBitmap (), FALSE);
   m_Lead1.SetAnnUserMode (ANNUSERMODE_RUN);
   AfxMessageBox("secondary bitmap set");
   m_Lead1.SetBitmap(m_Lead1.AnnGetSecondaryBitmap (hPushPin));