How to show HTML help on dialogbox?
-
Dear all, I have .html file and i want to show the file contents on the dialogbox as error messages/ warning messages in formated way. How to implement this? thanks in advance Regards, aj
I think you can use the WebBrowser ActiveX control. Go to dialog editor, right-click on dialog, select Insert ActiveX Control, and then select Microsoft Web Browser. Then create a control variable for this new control. Next call
Navigate2
member function in this manner:_bstr_t urll1(_T("file://path-to-your-html-file")); _variant_t url2 = url1; m_cMyControl.Navigate2(&url2, NULL, NULL, NULL, NULL);
Alternatively, you can format a nice message using some editor (like Write) and save as RTF file or resource. Then load this content to a rich-edit control (
CRichEditCtrl
). I hope this helps. -
Dear all, I have .html file and i want to show the file contents on the dialogbox as error messages/ warning messages in formated way. How to implement this? thanks in advance Regards, aj
See
ShowHTMLDialog
orIHostDialogHelper
. Steve