ShowCanvasResizeDlg Example for C++ 5.0 and later

Void CDialogs::ShowCanvasResizeDlg()
{
   int nRet; 
   m_pRasterImageDlg->CurrentHeight= m_LeadRasterView.GetRaster().GetBitmapHeight ();
   m_pRasterImageDlg->CurrentWidth= m_LeadRasterView.GetRaster().GetBitmapWidth ();
   m_pRasterImageDlg->BackColor = RGB ( 255, 255, 255 ); 

   m_pRasterImageDlg->UIFlags = CANVASRESIZE_SHOW_CURRENT_HEIGHT |
                           CANVASRESIZE_SHOW_CURRENT_WIDTH  |
                           CANVASRESIZE_SHOW_HORIZPOS       |
                           CANVASRESIZE_SHOW_VIRTZPOS       |
                           CANVASRESIZE_SHOW_BACKCOLOR      |
                           CANVASRESIZE_SHOW_KEEPASPECT     |
                           CANVASRESIZE_AUTOPROCESS; 

   m_pRasterImageDlg->Bitmap =  m_LeadRasterView.GetRaster ().GetBitmap ();
   

   nRet= m_pRasterImageDlg->ShowCanvasResizeDlg( (long)this->m_hWnd);}   
}