Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Use SVG file in Markup from resources
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Use SVG file in Markup from resources

 Post Reply Post Reply
Author
Message
KrustyKrab View Drop Down
Newbie
Newbie


Joined: 13 December 2024
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote KrustyKrab Quote  Post ReplyReply Direct Link To This Post Topic: Use SVG file in Markup from resources
    Posted: 13 December 2024 at 4:55am
Using Codejock 24.0.0 I want to use a SVG image directly in Markup code by accessing from the resources. The goal is to create a custom Markup code with different (text) elements and SVG images.

I figured out that I can use the file path to my SVG image in Markup. The following is working fine and the SVG image is displayed.
CString string = _T("<Image Width='100' Height='100' Source='C:\\myFile.svg'/>");
m_wndStatic.SetMarkupText(string);

Now I would like to use a resource ID to use my SVG file in Markup but the following does not work for me:
CString string = _T("<Image Width='100' Height='100' Source='IDR_MY_SVG'/>");
m_wndStatic.SetMarkupText(string);

What can I do to use my SVG image directly in Markup code by using a resource ID?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.