ShowSolarizeDlg Example for C++ 5.0 and later

void CDialogs::OnShowSolarizeDlg() 
{
   int nRet;
   m_pRasterColorDlg->UIFlags = SOLARIZE_SHOW_PREVIEW |
                                  SOLARIZE_SHOW_TOOL_ZOOMLEVEL;
   m_pRasterColorDlg->Bitmap =  m_LeadRasterView.GetRaster().GetBitmap ();
   nRet= m_pRasterColorDlg->ShowSolarizeDlg ((long)this->m_hWnd);
    if ( nRet == 0 && m_pRasterColorDlg->DialogStatus == DLG_OK )
   {
      m_pRasterProc->Solarize (m_LeadRasterView.GetRaster (),m_pRasterColorDlg->Threshold );
   }
}