ShowRotateDlg Example for C++ 5.0 and later
void CDialogs::OnShowRotateDlg()
{
int nRet;
m_pRasterImageDlg->EnableZoomToFit= false;
m_pRasterImageDlg->BackColor= RGB ( 255, 0, 0 );
m_pRasterImageDlg->Bitmap= m_LeadRasterView.GetRaster().GetBitmap ();
m_pRasterImageDlg->UIFlags=ROTATE_SHOW_PREVIEW |
ROTATE_SHOW_BACKCOLOR |
ROTATE_SHOW_RESIZE;
m_pRasterImageDlg->EnableMethodErrors= false;
m_pRasterImageDlg->ShowHelpButton= true;
nRet= m_pRasterImageDlg->ShowRotateDlg( (long)this->m_hWnd);
if ( nRet == 0 && m_pRasterImageDlg->DialogStatus== DLG_OK )
{
m_pRasterProc->Rotate(m_LeadRasterView.GetRaster (),
m_pRasterImageDlg->Angle,
m_pRasterImageDlg->GetRotateFlags(),
m_pRasterImageDlg->GetBackColor()
);
}
}