AnnMove example for C++ 5.0 and later

This example moves one or more selected annotation objects.

For more information on declaration and unlocking procedures used in testing this example, refer to Annotation Declaration Information.

void CTutorDlg::OnButtonAnnmove() 
{
   //This example moves one or more selected annotation objects.
   float fDeltaX;
   float fDeltaY;
   
   //Use pixels
   m_LEADRasterView1.SetScaleMode(SCALEMODE_PIXEL);
   
   //Specify arbitrary delta values.
   fDeltaX = 20;
   fDeltaY = -20;
   
   //Move the selected annotations.
   m_pRasterAnn->AnnMove(fDeltaX, fDeltaY, TRUE);
}