ShowPrewittFilterDlg Example for C++ 5.0 and later
void CDialogs::OnShowPrewittFilterDlg()
{
int nRet = 0;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
m_pRasterImageEfxDlg->UIFlags = PREWITTFILTER_SHOW_PREVIEW |
PREWITTFILTER_SHOW_TOOL_ZOOMLEVEL;
nRet = m_pRasterImageEfxDlg->ShowPrewittFilterDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
nRet = m_pRasterProc->SpatialFilter (m_LeadRasterView.GetRaster (),
m_pRasterImageEfxDlg->GetSpatialFilterType ()
);
}
}