ShowHistoContrastDlg Example for C++ 5.0 and later
void CDialogs::OnShowHistoContrast()
{
int nRet;
m_pRasterColorDlg->UIFlags = HISTOCONTRAST_SHOW_PREVIEW |
HISTOCONTRAST_SHOW_TOOL_ZOOMLEVEL ;
m_pRasterColorDlg->Bitmap = m_LeadRasterView.GetRaster().GetBitmap ();
nRet = m_pRasterColorDlg->ShowHistoContrastDlg((long)this->m_hWnd);
if ( nRet == 0 && m_pRasterColorDlg->DialogStatus ==DLG_OK )
{
m_pRasterProc->HistoContrast (m_LeadRasterView.GetRaster (), m_pRasterColorDlg->Change );
}
}