<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Assertion Occurs When Using SVG Icon with CXTPCont</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Assertion Occurs When Using SVG Icon with CXTPCont]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 24 Apr 2026 07:42:06 +0000</pubDate>
  <lastBuildDate>Mon, 17 Nov 2025 20:04:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=24614</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Assertion Occurs When Using SVG Icon with CXTPCont : I added a &#226;&#8364;&#339;change font color&#226;&#8364;&#157;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24614&amp;PID=79306&amp;title=assertion-occurs-when-using-svg-icon-with-cxtpcont#79306</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8143">hiro-ta</a><br /><strong>Subject:</strong> 24614<br /><strong>Posted:</strong> 17 November 2025 at 8:04pm<br /><br /><article ="text-token-text-primary w-full focus:outline-n&#111;ne --shadow-height:45px has--writing-block:pointer-s-n&#111;ne has--writing-block:-mt---shadow-height has--writing-block:pt---shadow-height &amp;:has-writing-block&gt;:pointer-s-auto -visibility:auto sups--visibility:auto:c&#111;ntain-intrinsic-size:auto_100lvh scroll-mt-calcvar--er-height+min200px,max70px,20svh" ="-1" dir="auto" -turn-id="request-WEB:a8b9fed6-3c2d-4843-a831-7fcd1a0d25f2-1" -testid="c&#111;nversati&#111;n-turn-4" -scroll-anchor="true" -turn="assistant"><div ="text- my-auto mx-auto pb-10 --thread--margin:--spacing4 thread-sm:--thread--margin:--spacing6 thread-lg:--thread--margin:--spacing16 px---thread--margin"><div ="--thread--max-width:40rem thread-lg:--thread--max-width:48rem mx-auto max-w---thread--max-width flex-1 group/turn-messages focus-:outline- relative flex w-full min-w-0 flex-col agent-turn" ="-1"><div ="flex max-w-full flex-col grow"><div -message-author-role="assistant" -message-id="a1613235-191f-4418-ae9a-176a6188a223" dir="auto" ="min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal .text-message+&amp;:mt-1" -message-model-slug="gpt-5-1"><div ="flex w-full flex-col gap-1 empty: first:pt-1px"><div ="markdown prose dark:prose-invert w-full break-words light markdown-new-styling"><p -start="125" -end="205">I added a “change font color” button to a <code -start="167" -end="180">CXTPToolBar</code>. The code is as follows:</p><pre ="overflow-!" -start="207" -end="1023"><div ="c&#111;ntain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"><div ="sticky top-9"><div =" end-0 bottom-0 flex h-9 items-center pe-2"><div ="bg-token-bg-elevated-sec&#111;ndary text-token-text-sec&#111;ndary flex items-center gap-4 rounded-sm px-2 font-sans text-xs"></div></div></div><div ="overflow-y-auto p-4" dir="ltr"><code ="whitespace-pre! -cpp"><span ="hljs-"><span ="hljs-">int</span></span> <span ="hljs-title">PEBookmarkCtrl::OnCreateControl</span><span ="hljs-s">(LPCREATECONTROLSTRUCT lpCreateControl)</span>{    <span ="hljs-keyword">switch</span>(lpCreateControl-&gt;nID)    {    <span ="hljs-keyword">case</span> ID_BKCTRL_COLOR:        CXTPControlPopupColor* pPopupColor = <span ="hljs-keyword">new</span> <span ="hljs-built_in">CXTPControlPopupColor</span>();        CXTPPopupBar* pColorBar = (CXTPPopupBar*)CXTPPopupToolBar::<span ="hljs-built_in">CreateObject</span>();        pColorBar-&gt;<span ="hljs-built_in">GetControls</span>()-&gt;<span ="hljs-built_in">Add</span>(<span ="hljs-keyword">new</span> <span ="hljs-built_in">CXTPControlButtonColor</span>(), ID_BKCTRL_COLOR_NONE);        pColorBar-&gt;<span ="hljs-built_in">GetControls</span>()-&gt;<span ="hljs-built_in">Add</span>(<span ="hljs-keyword">new</span> <span ="hljs-built_in">CXTPControlColorSelector</span>(), ID_BKCTRL_COLORSELECTOR);        pColorBar-&gt;<span ="hljs-built_in">GetControls</span>()-&gt;<span ="hljs-built_in">Add</span>(<span ="hljs-keyword">new</span> <span ="hljs-built_in">CXTPControlButtonColor</span>(), ID_BKCTRL_COLOR_MORE);        pPopupColor-&gt;<span ="hljs-built_in">SetCommandBar</span>(pColorBar);        pColorBar-&gt;<span ="hljs-built_in">EnableCustomization</span>(FALSE);        pColorBar-&gt;<span ="hljs-built_in">InternalRelease</span>();        lpCreateControl-&gt;pControl = pPopupColor;        <span ="hljs-keyword">return</span> TRUE;    }    <span ="hljs-keyword">return</span> FALSE;}</code></div></div></pre><p -start="1025" -end="1241">After changing the icon to an SVG, an assertion started occurring.<br -start="1091" -end="1094">It happens when <code -start="1110" -end="1145">CXTPControlPopupColor::SetColor()</code> is called in the <code -start="1163" -end="1185">ON_UPDATE_COMMAND_UI</code> handler (see attached).<br -start="1209" -end="1212">What should I do to fix this?</p><hr -start="1243" -end="1246" -is-last-node="" -is-&#111;nly-node=""><img src="uploads/8143/vs_debug.png" height="1047" width="1485" border="0" /></div></div></div></div><div ="z-0 flex min-h-46px justify-start"></div><div ="mt-3 w-full empty:"><div ="text-center"></div></div></div></div></article><div aria-="true" -edge="true" ="pointer-s-n&#111;ne h-px w-px"></div>]]>
   </description>
   <pubDate>Mon, 17 Nov 2025 20:04:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24614&amp;PID=79306&amp;title=assertion-occurs-when-using-svg-icon-with-cxtpcont#79306</guid>
  </item> 
 </channel>
</rss>