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. Howto change Html on CDHtmlDialog at runtime

Howto change Html on CDHtmlDialog at runtime

Scheduled Pinned Locked Moved C / C++ / MFC
html
5 Posts 4 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.
  • A Offline
    A Offline
    AnTri
    wrote on last edited by
    #1

    Hey, is it possible to change the HTML code in a CHTMLDialog at runtime. I need this because I want to create a dialog that changes his GUI by loaded different HTLM pages... Thanx a lot...

    H V M 3 Replies Last reply
    0
    • A AnTri

      Hey, is it possible to change the HTML code in a CHTMLDialog at runtime. I need this because I want to create a dialog that changes his GUI by loaded different HTLM pages... Thanx a lot...

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      What change? i dont have my code that i worked on CDHtmlDialog now and i dont understand what do you need but see GetDHtmlDocument for get IHTMLDocument2 interface maybe it is some helpful to you_**


      **_

      whitesky


      1 Reply Last reply
      0
      • A AnTri

        Hey, is it possible to change the HTML code in a CHTMLDialog at runtime. I need this because I want to create a dialog that changes his GUI by loaded different HTLM pages... Thanx a lot...

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

        In order to load different HTML page from disk, I think you can try the Navigate member, something like this:

        Navigate("file://c:\\MyFile.html");
        

        If your HTML page is in resources, you can try LoadFromResource function.

        H 1 Reply Last reply
        0
        • V Viorel

          In order to load different HTML page from disk, I think you can try the Navigate member, something like this:

          Navigate("file://c:\\MyFile.html");
          

          If your HTML page is in resources, you can try LoadFromResource function.

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          but i think he wants to change html code not load html_**


          **_

          whitesky


          1 Reply Last reply
          0
          • A AnTri

            Hey, is it possible to change the HTML code in a CHTMLDialog at runtime. I need this because I want to create a dialog that changes his GUI by loaded different HTLM pages... Thanx a lot...

            M Offline
            M Offline
            Marc Soleda
            wrote on last edited by
            #5

            It might help you: GetHtmlDocument[^] Marc. ... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits

            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