<?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 : Icons on CXTPDockingPane(s) when displayed as tabs</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Icons on CXTPDockingPane(s) when displayed as tabs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 04:21:08 +0000</pubDate>
  <lastBuildDate>Mon, 28 Jun 2010 04:39:38 +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=16874</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[Icons on CXTPDockingPane(s) when displayed as tabs : Fair enough. Thanks.&amp;#9660;&amp;#9650;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59129&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 16874<br /><strong>Posted:</strong> 28 June 2010 at 4:39am<br /><br /><br>Fair enough. Thanks.<br><br><br><div ="" title="Page Scroll Marker" id="PageScrollMarkerM&#111;nJun282010103836GMT0200RomanceDaylightTime"><div style="top: 0px;">&#9660;</div><div style="bottom: 0px;">&#9650;</div></div>]]>
   </description>
   <pubDate>Mon, 28 Jun 2010 04:39:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59129&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59129</guid>
  </item> 
  <item>
   <title><![CDATA[Icons on CXTPDockingPane(s) when displayed as tabs : Hi, You can call SetIcons for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59124&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 16874<br /><strong>Posted:</strong> 28 June 2010 at 2:14am<br /><br />Hi,<br />You can call SetIcons for each Id you need.]]>
   </description>
   <pubDate>Mon, 28 Jun 2010 02:14:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59124&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59124</guid>
  </item> 
  <item>
   <title><![CDATA[Icons on CXTPDockingPane(s) when displayed as tabs : Thanks for your answer.Unfortunately,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59103&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 16874<br /><strong>Posted:</strong> 25 June 2010 at 4:20am<br /><br /><br>Thanks for your answer.<br><br>Unfortunately, that was the very first thing I tried. <br><br>SetIcons() seems to require that the bitmap resource has exactly the same number of images as there are pane IDs passed to it. <br><br>I have a dynamic number of panes. <br><br>Besides, SetIcons internally calls SetIcon(&lt;id&gt;, &lt;icon&gt;), which is what I've been trying to do in the examples I posted.<br><br>Is there some other way to assign an image individually to a pane?<br><br><br><br><br><div ="" title="Page Scroll Marker" id="PageScrollMarkerFriJun252010095848GMT0200RomanceDaylightTime"><div style="top: 0px;">&#9660;</div><div style="bottom: 0px;">&#9650;</div></div>]]>
   </description>
   <pubDate>Fri, 25 Jun 2010 04:20:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59103&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59103</guid>
  </item> 
  <item>
   <title><![CDATA[Icons on CXTPDockingPane(s) when displayed as tabs : Just follow samples. Don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59100&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 16874<br /><strong>Posted:</strong> 25 June 2010 at 1:44am<br /><br />Just follow samples. Don't use SetImageList/CXTPImageManagerIconHandle - if you not sure how they work<br /><br />Here code from PaneSample:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int nIDs1&#091;&#093; = {IDR_PANE1, IDR_PANE2, IDR_PANE3, IDR_PANE4, IDR_PANE5};<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_paneManager.SetIcons(IDB_BITMAP1, nIDs1, 5, RGB(0, 255, 0));<br />]]>
   </description>
   <pubDate>Fri, 25 Jun 2010 01:44:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59100&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59100</guid>
  </item> 
  <item>
   <title><![CDATA[Icons on CXTPDockingPane(s) when displayed as tabs :  XTP 10.31  What seemed like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59096&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59096</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 16874<br /><strong>Posted:</strong> 24 June 2010 at 9:05am<br /><br /><b><br>XTP 10.31</b><br><br>What seemed like a trivial task turned into a nightmare: I'm trying to set an icon (a single icon) to all docking panes (CXTPDockingPanes), without any success. When panes are arranged as tabs inside a CXTPDockingPaneTabbedContainer, the icon I've set for each pane (the same one) is not displayed on any tabs.<br><br>If it matters, docking panes are created dynamically and their number is not known in advance.<br><br>Here are a few of my attempts:<br><br><b>1) Image is stored as a bitmap resource IDR_MY_BITMAP</b><br><br>CImageList myImageList;<br>BOOL created = myImageList.Create(IDR_MY_BITMAP, 16, 1, RGB(255, 255, 255));&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Loads just fine<br>XTPImageManager()-&gt;SetImageList(myImageList.Detach(), IDR_MY_BITMAP, TRUE);<title>Snippet</title>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // OK, image list gets stored internally<br><br>... later in the code<br><br>CXTPImageManagerIcon* pIcon = XTPImageManager()-&gt;GetImage(IDR_MY_BITMAP);&nbsp; // works fine, image list is found and the ID matches<br>// iterate through all CXTPDockingPanes<br>// _paneManager is CXTPDockingPaneManager<br>_paneManager.SetIcon(&lt;xtpPaneId&gt;, pIcon-&gt;GetIcon());&nbsp; // GetIcon() has m_hIcon == NULL (?)<br><br>Turns out, this doesn't work because CXTPImageManagerIcon::GetIcon() actually does not use the image list passed in the constructor (myImageList). The image list is used only when CXTPImageManagerIcon is asked to draw the icon (?).<br><br><br><b>2) Image stored as the icon resource IDR_MY_ICON</b><br><br>CXTPImageManagerIconHandle iconHandle(AfxGetApp()-&gt;LoadIcon(IDR_MY_ICON)); // works fine, internal HICON is valid<br>_paneManager.SetIcon(&lt;xtpPaneId&gt;, iconHandle);&nbsp; // no effect?<br><br><br><br>It must be trivial to associate an icon with a pane and have it displayed when the pane is tabbed, and yet I'm missing something obvious. What is it?<br><br>Thanks in advance!<br><br><br><div ="active" title="Page Scroll Marker" id="PageScrollMarkerThuJun242010144049GMT0200RomanceDaylightTime"><div style="bottom: 0px;">&#9650;</div></div>]]>
   </description>
   <pubDate>Thu, 24 Jun 2010 09:05:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16874&amp;PID=59096&amp;title=icons-on-cxtpdockingpanes-when-displayed-as-tabs#59096</guid>
  </item> 
 </channel>
</rss>