Available in the LEADTOOLS Imaging toolkit. |
ShowFilesAssociationDlg Example for C++ 5.0 and later
void CDialogs::OnShowFilesAssociationDlg() { HRESULT hr; int nRet; ILEADRasterDlgKrn_U *m_pRasterDlgKrn = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgKrn_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgKrn_U, (LPVOID*)&m_pRasterDlgKrn); ILEADRasterDlgFile_U *m_pRasterDlgFile = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgFile_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgFile_U, (LPVOID*)&m_pRasterDlgFile); nRet = m_pRasterDlgKrn->InitDlg(INIT_WITH_COLOR); m_pRasterDlgFile->UIFlags = 0; m_pRasterDlgFile->Formats = "LEAD (*.cmp)|*.cmp|DICOM (*.dic)|*.dic|Windows Bitmap (*.bmp)|*.bmp"; m_pRasterDlgFile->SelectedExt = ""; m_pRasterDlgFile->ServerApplicationName = "LEADTOOLS"; m_pRasterDlgFile->ShowFilesAssociationDlg((long)m_hWnd); }