ShowShearDlg Example for C++ 5.0 and later

void CDialogs::OnShowShearDlg()
{
   int nRet; 

   m_pRasterImageDlg->EnableHorizontal= true; 
   m_pRasterImageDlg->Angle = 4500; 
   m_pRasterImageDlg->BackColor = RGB ( 255, 0, 0 ); 
   m_pRasterImageDlg->UIFlags = SHEAR_AUTOPROCESS |
                            SHEAR_SHOW_PREVIEW |
                            SHEAR_SHOW_BACKCOLOR |
                            SHEAR_SHOW_HORIZONTAL; 

   m_pRasterImageDlg->Bitmap =  m_LeadRasterView.GetRaster().GetBitmap();

   if ( nRet == 0 && m_pRasterImageDlg->DialogStatus == DLG_OK ) 
   {
      m_pRasterProc->Shear (m_LeadRasterView.GetRaster (),
                           m_pRasterImageDlg->Angle
                           m_pRasterImageDlg->GetEnableHorizontal(),
                           m_pRasterImageDlg->GetBackColor ()
                           ); 
   }
}