ShowLineRemoveDlg Example for C++ 5.0 and later

void CDialogs::OnShowLineRemoveDlg()
{
   int nRet; 
   m_pRasterImgDocDlg->LineRemove->GapLength= 3; 
   m_pRasterImgDocDlg->LineRemove->MaxLineWidth= 9; 
   m_pRasterImgDocDlg->LineRemove->MaxWallPercent= 10; 
   m_pRasterImgDocDlg->LineRemove->MinLineLength= 400; 
   m_pRasterImgDocDlg->LineRemove->Variance= 3; 
   m_pRasterImgDocDlg->LineRemove->Wall= 15; 
   m_pRasterImgDocDlg->LineRemove->PutFlags(LINE_USE_DPI | LINE_USE_VARIANCE); 
   m_pRasterImgDocDlg->LineRemove->PutRemoveFlags(LINEREMOVE_VERTICAL); 

   m_pRasterImgDocDlg->PutModificationColor(RGB ( 0, 255, 0 )); 

   m_pRasterImgDocDlg->UIFlags = LINEREMOVE_SHOW_PREVIEW |
                                LINEREMOVE_SHOW_TOOL_ZOOMLEVEL; 

   m_pRasterImgDocDlg->PutBitmap (m_LeadRasterView.GetRaster ().GetBitmap ());

   nRet = m_pRasterImgDocDlg->ShowLineRemoveDlg((long)this->m_hWnd); 

   if (nRet == 0 && m_pRasterImgDocDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->LineRemove (m_LeadRasterView.GetRaster (),0, 
                  m_pRasterImgDocDlg->LineRemove->MinLineLength
                  m_pRasterImgDocDlg->LineRemove->MaxLineWidth
                  m_pRasterImgDocDlg->LineRemove->Wall
                  m_pRasterImgDocDlg->LineRemove->MaxWallPercent
                  m_pRasterImgDocDlg->LineRemove->GapLength
                  m_pRasterImgDocDlg->LineRemove->Variance
                  m_pRasterImgDocDlg->LineRemove->GetRemoveFlags()
                  ); 
   }
}