ShowEmbossDlg Example for C++ 5.0 and later

void CDialogs::OnShowEmbossDlg()
{
   int nRet = 0; 

   m_pRasterImageEfxDlg->PutDirection(EMBOSS_S); 
   m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
   m_pRasterImageEfxDlg->UIFlags = EMBOSS_SHOW_PREVIEW |
                                   EMBOSS_SHOW_TOOL_ZOOMLEVEL; 

   nRet = m_pRasterImageEfxDlg->ShowEmbossDlg((long)this->m_hWnd); 

   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      nRet = m_pRasterProc->Emboss (m_LeadRasterView.GetRaster (),
                                     m_pRasterImageEfxDlg->GetDirection(),
                                     m_pRasterImageEfxDlg->Depth
                                      ); 
   }