ShowContrastDlg Example for C++ 5.0 and later
void CDialogs::OnShowContrastDlg()
{
int nRet;
m_pRasterColorDlg->UIFlags = CONTRAST_SHOW_PREVIEW |
CONTRAST_SHOW_TOOL_ZOOMLEVEL;
m_pRasterColorDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
nRet= m_pRasterColorDlg->ShowContrastDlg ((long)this->m_hWnd);
if ( nRet == 0 && m_pRasterColorDlg->DialogStatus == DLG_OK )
{
m_pRasterProc->Contrast (m_LeadRasterView.GetRaster
(),m_pRasterColorDlg->Change );
}
}