ShowSaturationDlg Example for C++ 5.0 and later

void CDialogs::OnShowSaturationDlg()
{
    int nRet; 
    m_pRasterColorDlg->UIFlags = SATURATION_SHOW_PREVIEW |
                            SATURATION_SHOW_TOOL_ZOOMLEVEL; 
    m_pRasterColorDlg->Bitmap =  m_LeadRasterView.GetRaster().GetBitmap ();
    m_pRasterColorDlg->ShowSaturationDlg ((long)this->m_hWnd); 
    if ( nRet == 0 && m_pRasterColorDlg->DialogStatus == DLG_OK ) 
    {
          m_pRasterProc->Saturation (m_LeadRasterView.GetRaster (),m_pRasterColorDlg->Change); 
    }