ShowOpenDlg Example for C++ 5.0 and later
void CDialogs::OnShowOpenDlg()
{
int nRet;
m_pRasterFileDlg->DialogTitle = "LEADTOOLS Open dialog box";
m_pRasterFileDlg->InitialDir = "c:\\images";
m_pRasterFileDlg->FileDlgFlags = 0;
m_pRasterFileDlg->EnableShowPreview = true;
m_pRasterFileDlg->EnableShowLoadOptions = false;
m_pRasterFileDlg->LoadRotated = false;
m_pRasterFileDlg->LoadCompressed = false;
m_pRasterFileDlg->LoadPasses = 0;
m_pRasterFileDlg->UIFlags = OPEN_SHOW_PROGRESSIVE |
OPEN_SHOW_MULTIPAGE |
OPEN_SHOW_LOADROTATED |
OPEN_SHOW_LOADCOMPRESSED |
OPEN_SHOW_FILEINFO |
OPEN_SHOW_PREVIEW |
OPEN_SHOW_DELPAGE |
OPEN_VIEWTOTALPAGES;
nRet= m_pRasterFileDlg->ShowOpenDlg ( (long)this->m_hWnd );
if ( nRet == 0 && m_pRasterFileDlg->DialogStatus ==DLG_OK )
{
m_pRasterIO->Load (m_LeadRasterView.GetRaster (),m_pRasterFileDlg->FileName, 0, m_pRasterFileDlg->PageNumber, 1 );
}
}