ShowMedianDlg Example for C++ 5.0 and later
void CDialogs::OnShowMedianDlg()
{
int nRet = 0;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
m_pRasterImageEfxDlg->UIFlags = MEDIAN_SHOW_PREVIEW |
MEDIAN_SHOW_TOOL_ZOOMLEVEL;
nRet = m_pRasterImageEfxDlg->ShowMedianDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
nRet = m_pRasterProc->Median (m_LeadRasterView.GetRaster (),
m_pRasterImageEfxDlg->Dimension
);
}
}