Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to show HTML help on dialogbox?

How to show HTML help on dialogbox?

Scheduled Pinned Locked Moved C / C++ / MFC
helphtmltutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jadhav123
    wrote on last edited by
    #1

    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

    V S 2 Replies Last reply
    0
    • J jadhav123

      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

      V Offline
      V Offline
      Viorel
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • J jadhav123

        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

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        See ShowHTMLDialog or IHostDialogHelper. Steve

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups