Available in the LEADTOOLS Imaging toolkit. |
ShowHTMLMapperDlg Example for C++ 5.0 and later
void CDialogs::OnHtmlMapper() { HRESULT hr; int nRet; ILEADRasterDlgKrn_U *m_pRasterDlgKrn = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgKrn_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgKrn_U, (LPVOID*)&m_pRasterDlgKrn); ILEADRasterDlgWeb_U *m_pRasterDlgWeb = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgWeb_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgWeb_U, (LPVOID*)&m_pRasterDlgWeb); nRet = m_pRasterDlgKrn->InitDlg(INIT_WITH_COLOR); m_pRasterDlgWeb->PutUIFlags (0); m_pRasterDlgWeb->Bitmap = m_pLead1.GetBitmap(); m_pRasterDlgWeb->URLMaxLength = 35; m_pRasterDlgWeb->ALTMaxLength = 35; m_pRasterDlgWeb->TargetMaxLength = 10; m_pRasterDlgWeb->RolloverMaxLength = MAX_PATH; m_pRasterDlgWeb->URLEntryCount = 5; m_pRasterDlgWeb->ALTEntryCount = 5; m_pRasterDlgWeb->TargetEntryCount = 5; m_pRasterDlgWeb->RolloverEntryCount =5; m_pRasterDlgWeb->URLValidEntryCount = 2; m_pRasterDlgWeb->ALTValidEntryCount = 1; m_pRasterDlgWeb->TargetValidEntryCount = 1; m_pRasterDlgWeb->RolloverValidEntryCount = 3; m_pRasterDlgWeb->URL[0] = "http://www.medicorimaging.com/"; m_pRasterDlgWeb->URL[1] = "http://www.leadtools.com/"; m_pRasterDlgWeb->ALT[0] = "LEADTOOLS Online!"; m_pRasterDlgWeb->Target[0] = "_parent"; m_pRasterDlgWeb->Rollover[0] = "D:\\Images\\Vista\\Dock.jpg"; m_pRasterDlgWeb->Rollover[1] = "D:\\Images\\Vista\\Forest.jpg"; m_pRasterDlgWeb->Rollover[2] = "D:\\Images\\Vista\\Garden.jpg"; m_pRasterDlgWeb->ShowHTMLMapperDlg((long)m_hWnd); }