ShowBendingDlg Example for C++ 5.0 and later

void CDialogs::ShowBendingDlg1Click()
{
   L_INT nRet; 
   LEADDlgImgEffect1->UIFlags= BENDING_SHOW_PREVIEW |
                                 BENDING_SHOW_TOOL_ZOOMLEVEL; 

   LEADDlgImgEffect1->Bitmap= Bitmap1; 

   nRet= LEADDlgImgEffect1->ShowBendingDlg( this ); 
   if ( nRet == SUCCESS_OK ) 
   {
      Bitmap1->Bending ( LEADDlgImgEffect1->Value
                           LEADDlgImgEffect1->CenterPoint, 
                           LEADDlgImgEffect1->FillColor
                           LEADDlgImgEffect1->ImageEffectFlags); 
   }
}