Adding background to CDHtmlDialog
-
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?
-
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?
You can put the image into your exe and use the res:// protocol in your body background tag. onwards and upwards...
-
You can put the image into your exe and use the res:// protocol in your body background tag. onwards and upwards...
Can res:// be used to access a resource like a file in any application?
-
Can res:// be used to access a resource like a file in any application?
see this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcce/htm/evc_guide07_18.asp[^] onwards and upwards...
-
see this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcce/htm/evc_guide07_18.asp[^] onwards and upwards...
and this one: http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/predefined/res.asp[^] onwards and upwards...
-
You can put the image into your exe and use the res:// protocol in your body background tag. onwards and upwards...