html-based modless Windeow
-
Hi to you, sorry about me very bad english. I'm looking for a way to include a html-based resource in a project and diplay it as an modless Window. Can somebody help? Meinhard :confused:
-
Hi to you, sorry about me very bad english. I'm looking for a way to include a html-based resource in a project and diplay it as an modless Window. Can somebody help? Meinhard :confused:
use below in your .rc file: TESTID RCDATA "htmlfile.html" and use it in your code. m_hInstance can be NULL. HRSRC h = FindResource(m_hInstance, "TESTID", RT_RCDATA); if (!h) { HGLOBAL f = LoadResource(m_hInstance, h); void* mem = LockResource(f); int size = SizeofResource(m_hInstance, h); } and cook it. Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com
-
use below in your .rc file: TESTID RCDATA "htmlfile.html" and use it in your code. m_hInstance can be NULL. HRSRC h = FindResource(m_hInstance, "TESTID", RT_RCDATA); if (!h) { HGLOBAL f = LoadResource(m_hInstance, h); void* mem = LockResource(f); int size = SizeofResource(m_hInstance, h); } and cook it. Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com
Thank you very much!! I tried it and it works fine! But as a stupid I am, my question now is, how to put it on the sreen in a window? Thank you for helping again. Meinhard :) :confused:
-
Thank you very much!! I tried it and it works fine! But as a stupid I am, my question now is, how to put it on the sreen in a window? Thank you for helping again. Meinhard :) :confused:
You're welcome. It's my pleasure. you can save the resource to temporary file, and load it by using the MFCIE. Or access it directly in MFCIE if it would work. see the below msdn reference. you can download the sample. http://msdn2.microsoft.com/en-us/library/ms177540(en-US,VS.80).aspx[^] Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com
-
You're welcome. It's my pleasure. you can save the resource to temporary file, and load it by using the MFCIE. Or access it directly in MFCIE if it would work. see the below msdn reference. you can download the sample. http://msdn2.microsoft.com/en-us/library/ms177540(en-US,VS.80).aspx[^] Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com
Thank you for your answer. But the difficulties never ends. The linked sample is written for Vers 8.0. I'm unable to use, because I#m only owner of the 7.0 Version of VS. Hope you would help me again. All the best Meinhard ;)
-
Thank you for your answer. But the difficulties never ends. The linked sample is written for Vers 8.0. I'm unable to use, because I#m only owner of the 7.0 Version of VS. Hope you would help me again. All the best Meinhard ;)
ok. i'd like to introduce this: http://www.codeguru.com/cpp/i-n/ieprogram/article.php/c4373/#more[^] and you need to download latest sdk. look up PSDK-x86.exe in below page. but you should choose it by your cpu. http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en[^] Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com
-
ok. i'd like to introduce this: http://www.codeguru.com/cpp/i-n/ieprogram/article.php/c4373/#more[^] and you need to download latest sdk. look up PSDK-x86.exe in below page. but you should choose it by your cpu. http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en[^] Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com
thanks for all, it works fine !!:)