ShowOilifyDlg Example for C++ 5.0 and later
void CDialogs::OnShowOilifyDlg()
{
int nRet = 0;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
m_pRasterImageEfxDlg->UIFlags = OILIFY_SHOW_PREVIEW |
OILIFY_SHOW_TOOL_ZOOMLEVEL;
nRet = m_pRasterImageEfxDlg->ShowOilifyDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
nRet = m_pRasterProc->Oilify (m_LeadRasterView.GetRaster (),
m_pRasterImageEfxDlg->Dimension
);
}
}