请问如何使用IHTMLViewer中使用img标签
我用的BREW SDK 是3.1.5
我想使用IHTMLViewer构建应用程序的UI但是在使用<img>标签的时候总是无法显示图片不知道是为什么还请高手指点一下。
代码如下:
void showHtmlContent(HtmlViewer * pMe, const char *source)
{
IHTMLVIEWER_SetNotifyFn(pMe->htmlViewer, (PFNHVIEWNOTIFY)ND_NotifyCB, pMe);
IHTMLVIEWER_SetData(pMe->htmlViewer, source, -1);
IHTMLVIEWER_SetRect(pMe->htmlViewer, &pMe->htmlViewerRect);
IHTMLVIEWER_SetProperties(pMe->htmlViewer, HVP_SCROLLBAR);
IHTMLVIEWER_Redraw(pMe->htmlViewer);
IHTMLVIEWER_SetActive(pMe->htmlViewer, TRUE);
IDISPLAY_Update(pMe->a.m_pIDisplay);
}
void ND_NotifyCB( void* pvUser, HViewNotify* pNotify )
{
HtmlViewer* pApp = (HtmlViewer*) pvUser;
switch( pNotify->code )
{
case HVN_REDRAW_SCREEN:
IDISPLAY_ClearScreen(pApp->a.m_pIDisplay);
IHTMLVIEWER_Redraw(pApp->htmlViewer);
break;
case HVN_JUMP:
case HVN_SUBMIT:
break;
case HVN_DONE:
break;
}
}
显示代码
showHtmlContent(pMe, "<img src='splash.bmp' width='65' height='42'/>");
img中src的路径我还是用过file:///splash.bmp 但是还是没有显示成功。