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. Adding background to CDHtmlDialog

Adding background to CDHtmlDialog

Scheduled Pinned Locked Moved C / C++ / MFC
htmltutorialquestion
6 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
    Jack_pt
    wrote on last edited by
    #1

    I want to include a background image in my programs about dialog, which is derived from CDHtmlDialog. Using the toolbar, I added the image and it inserted the following code: This works fine on my computer but when I try the program on another computer it can't find the image since the path doesn't exist. I've tried using a relative path like but that doesn't work, even on my computer. VC doesn't seem to follow nornal HTML coding rules. Can someone please explain how to code this so the image will display properly on any computer?

    B 1 Reply Last reply
    0
    • J Jack_pt

      I want to include a background image in my programs about dialog, which is derived from CDHtmlDialog. Using the toolbar, I added the image and it inserted the following code: This works fine on my computer but when I try the program on another computer it can't find the image since the path doesn't exist. I've tried using a relative path like but that doesn't work, even on my computer. VC doesn't seem to follow nornal HTML coding rules. Can someone please explain how to code this so the image will display properly on any computer?

      B Offline
      B Offline
      basementman
      wrote on last edited by
      #2

      You can put the image into your exe and use the res:// protocol in your body background tag.  onwards and upwards...

      K J 2 Replies Last reply
      0
      • B basementman

        You can put the image into your exe and use the res:// protocol in your body background tag.  onwards and upwards...

        K Offline
        K Offline
        Ken Mazaika
        wrote on last edited by
        #3

        Can res:// be used to access a resource like a file in any application?

        B 1 Reply Last reply
        0
        • K Ken Mazaika

          Can res:// be used to access a resource like a file in any application?

          B Offline
          B Offline
          basementman
          wrote on last edited by
          #4

          see this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcce/htm/evc_guide07_18.asp[^]  onwards and upwards...

          B 1 Reply Last reply
          0
          • B basementman

            see this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcce/htm/evc_guide07_18.asp[^]  onwards and upwards...

            B Offline
            B Offline
            basementman
            wrote on last edited by
            #5

            and this one: http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/predefined/res.asp[^]  onwards and upwards...

            1 Reply Last reply
            0
            • B basementman

              You can put the image into your exe and use the res:// protocol in your body background tag.  onwards and upwards...

              J Offline
              J Offline
              Jack_pt
              wrote on last edited by
              #6

              Thanks for the help. That took care of it.:)

              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