<?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 : Adding icon to a popup Item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Adding icon to a popup Item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 18:43:03 +0000</pubDate>
  <lastBuildDate>Sat, 04 Oct 2014 05:16:48 +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=22426</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[Adding icon to a popup Item :   Willowmaster wrote:In your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72812&amp;title=adding-icon-to-a-popup-item#72812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4319">sdancer75</a><br /><strong>Subject:</strong> 22426<br /><strong>Posted:</strong> 04 October 2014 at 5:16am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Willowmaster" alt="Originally posted by Willowmaster" style="vertical-align: text-bottom;" /> <strong>Willowmaster wrote:</strong><br /><br />In your examples you use two different icon sizes. 16X16 and 32X32. Not sure if it was clear what I meant.</td></tr></table><div><br></div><div>Yes you are right, sorry for my mistake in the examples above,&nbsp;<span style="line-height: 1.4;">but in the real code inside my project, I have already corrected my mistake at the very beggining and the result is just the same.......</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">I think that the problem is that I have to store the image inside the Image Manager before I call the SetIconId() to take care some parameters.........</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Regards,</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;"><br></span></div><div><br></div>]]>
   </description>
   <pubDate>Sat, 04 Oct 2014 05:16:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72812&amp;title=adding-icon-to-a-popup-item#72812</guid>
  </item> 
  <item>
   <title><![CDATA[Adding icon to a popup Item : In your examples you use two different...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72811&amp;title=adding-icon-to-a-popup-item#72811</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 22426<br /><strong>Posted:</strong> 03 October 2014 at 4:22pm<br /><br />In your examples you use two different icon sizes. 16X16 and 32X32. Not sure if it was clear what I meant.]]>
   </description>
   <pubDate>Fri, 03 Oct 2014 16:22:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72811&amp;title=adding-icon-to-a-popup-item#72811</guid>
  </item> 
  <item>
   <title><![CDATA[Adding icon to a popup Item :   Willowmaster wrote:Different...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72810&amp;title=adding-icon-to-a-popup-item#72810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4319">sdancer75</a><br /><strong>Subject:</strong> 22426<br /><strong>Posted:</strong> 03 October 2014 at 11:32am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Willowmaster" alt="Originally posted by Willowmaster" style="vertical-align: text-bottom;" /> <strong>Willowmaster wrote:</strong><br /><br />Different icon size maybe?</td></tr></table><div><br></div><div>Hi,</div><div><br></div><div>No its the same....&nbsp;<img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" alt="C&#111;nfused" title="C&#111;nfused" /></div>]]>
   </description>
   <pubDate>Fri, 03 Oct 2014 11:32:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72810&amp;title=adding-icon-to-a-popup-item#72810</guid>
  </item> 
  <item>
   <title><![CDATA[Adding icon to a popup Item : Different icon size maybe? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72806&amp;title=adding-icon-to-a-popup-item#72806</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 22426<br /><strong>Posted:</strong> 02 October 2014 at 8:47am<br /><br />Different icon size maybe?]]>
   </description>
   <pubDate>Thu, 02 Oct 2014 08:47:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72806&amp;title=adding-icon-to-a-popup-item#72806</guid>
  </item> 
  <item>
   <title><![CDATA[Adding icon to a popup Item : Ok I solve it with the code belowUINT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72805&amp;title=adding-icon-to-a-popup-item#72805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4319">sdancer75</a><br /><strong>Subject:</strong> 22426<br /><strong>Posted:</strong> 02 October 2014 at 8:45am<br /><br />Ok I solve it with the code below<div><br></div><div><br></div><div><div><font size="1">UINT nID_History&#091;&#093; = {ID_TOC_HISTORY};</font></div><div><font size="1">pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDB_PNG_HISTORY, nID_History, _countof(nID_History), CSize(16, 16), xtpImageNormal);</font></div></div><div><br></div><div>But why didn't work with the SetIconId() ?</div><div><br></div><div>Regards,</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 02 Oct 2014 08:45:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72805&amp;title=adding-icon-to-a-popup-item#72805</guid>
  </item> 
  <item>
   <title><![CDATA[Adding icon to a popup Item : Hi,I am trying to add an icon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72804&amp;title=adding-icon-to-a-popup-item#72804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4319">sdancer75</a><br /><strong>Subject:</strong> 22426<br /><strong>Posted:</strong> 02 October 2014 at 8:10am<br /><br />Hi,&nbsp;<div><br></div><div>I am trying to add an icon to an item popup menu. But when I open the popup menu it shows nothing.</div><div><br></div><div><br></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPPopupBar *pChildBar = &nbsp;(CXTPPopupBar*)((CMainFrame *)AfxGetMainWnd())-&gt;m_pPopupHistory-&gt;GetCommandBar();<span ="Apple-tab-span" style="white-space:pre">		</span></font></div><div><br></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>//******** manually create Control Button *************************</font></div><div></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPControlButton &nbsp;*pItem = (CXTPControlButton*) CXTPControlButton::CreateObject();<span ="Apple-tab-span" style="white-space:pre">	</span></font></div><div><span ="Apple-tab-span" style="white-space:pre"><font size="1">	</font></span></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>pItem-&gt;SetID(ID_TOC_HISTORY);</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>pItem-&gt;SetCaption(m_TreeCtrl.GetItemText(m_TreeCtrl.GetSelectedItem()));</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>pItem-&gt;SetIconSize(CSize(32,32));</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>pItem-&gt;SetIconId(IDB_PNG_HISTORY); <font color="#ff0000">&lt;-- Seems to do nothing</font></font></div><div><font size="1"><br></font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>//********************************************************************</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPControl* pMenuItem = pChildBar-&gt;GetControls()-&gt;InsertAt(pItem,0); // add item created before to the menu.</font></div><div><br></div><div><br></div><div><div>What seems to be the problem in the code above ?</div><div><br></div><div>regards,</div><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Thu, 02 Oct 2014 08:10:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22426&amp;PID=72804&amp;title=adding-icon-to-a-popup-item#72804</guid>
  </item> 
 </channel>
</rss>