<?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 : ImageManager issue in 11.2.1</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : ImageManager issue in 11.2.1]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 22:11:00 +0000</pubDate>
  <lastBuildDate>Mon, 17 Dec 2007 01:25:01 +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=8991</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[ImageManager issue in 11.2.1 : Yes, CXTTreeCtrl doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29505&amp;title=imagemanager-issue-in-11-2-1#29505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8991<br /><strong>Posted:</strong> 17 December 2007 at 1:25am<br /><br />Yes, CXTTreeCtrl&nbsp; doesn't support ImageManager :(<DIV></DIV><DIV></DIV>You can manually draw icons in OnCustomDraw handler:<DIV>&nbsp;</DIV><DIV><BR>void CTreeViewCtrl::OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult)<BR>{</DIV><DIV>&nbsp; NMTVCUSTOMDRAW* lpLVCD = reinterpret_cast&lt;NMTVCUSTOMDRAW*&gt;(pNMHDR);<BR>&nbsp;*pResult = CDRF_DODEFAULT;</DIV><DIV>&nbsp;switch (lpLVCD-&gt;nmcd.dwDrawStage)<BR>&nbsp;{<BR>&nbsp;case CDDS_PREPAINT:<BR>&nbsp;&nbsp;*pResult = CDRF_NOTIFYITEMDRAW;<BR>&nbsp;&nbsp;break;</DIV><DIV>&nbsp;case CDDS_PREPAINT | CDDS_ITEM:<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp; *pResult |= CDRF_NOTIFYPOSTPAINT;<BR>break;<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;case CDDS_POSTPAINT | CDDS_ITEM:<BR>&nbsp;case CDDS_POSTPAINT | CDDS_ITEM&nbsp; | CDDS_SUBITEM:<BR>&nbsp;&nbsp;{<BR></DIV><DIV>...</DIV><DIV>&nbsp;<BR>&nbsp;&nbsp;&nbsp;CXTPImageManagerIcon* pIcon = m_pIcons-&gt;GetImage(pItem-&gt;m_nIcon, m_nIconSize);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;if (!pIcon) <BR>&nbsp;&nbsp;&nbsp;&nbsp;pIcon = m_pIcons-&gt;GetImage(pItem-&gt;m_nIcon, ICON_SMALL);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;if (!pIcon)<BR>&nbsp;&nbsp;&nbsp;&nbsp;return;</DIV><DIV>&nbsp;&nbsp;&nbsp;CRect rc(0, 0, 0, 0);<BR>&nbsp;&nbsp;&nbsp;GetTreeCtrl()-&gt;GetItemRect(pItem-&gt;m_hItem, rc, TRUE);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;if (!rc.IsRectEmpty())<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;XTPImageState imageState = xtpImageNormal;<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (GetTreeCtrl()-&gt;GetItemState(hItem, TVIS_SELECTED) &amp; TVIS_SELECTED)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;imageState = xtpImageHot;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;CPoint pt(rc.left - m_nIconSize - 2, (rc.top + rc.bottom - sz.cy) / 2);<BR>&nbsp;&nbsp;&nbsp;&nbsp;pIcon-&gt;Draw(CDC::FromHandle(lpLVCD-&gt;nmcd.hdc), pt, pIcon-&gt;GetIcon(imageState), sz);<BR>&nbsp;&nbsp;&nbsp;}<BR>...</DIV><DIV>break;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR></DIV>]]>
   </description>
   <pubDate>Mon, 17 Dec 2007 01:25:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29505&amp;title=imagemanager-issue-in-11-2-1#29505</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager issue in 11.2.1 : oleg, I have a question on this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29501&amp;title=imagemanager-issue-in-11-2-1#29501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8991<br /><strong>Posted:</strong> 16 December 2007 at 10:36pm<br /><br />oleg, I have a question on this topic too.<DIV>I wish to using <SPAN =highlight>CXTPImageManager</SPAN> to load icons for a CXTTreeCtrl control,</DIV><DIV>but CXTTreeCtrl&nbsp; only support CImageList:</DIV><DIV><FONT color=#0000ff>CImageList* SetImageList(CImageList* pImageList, int nImageListType);</FONT></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV><FONT color=#000000>you said "CImageList supports 32bit alpha bitmaps only in WindowsXP, but <SPAN =highlight>CXTPImageManager</SPAN> for all OS.....",</FONT></DIV><DIV>but how could I use <SPAN =highlight>CXTPImageManager</SPAN>&nbsp; for CXTTreeCtrl?</DIV><DIV>&nbsp;</DIV><DIV>Thanks very much!</DIV>]]>
   </description>
   <pubDate>Sun, 16 Dec 2007 22:36:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29501&amp;title=imagemanager-issue-in-11-2-1#29501</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager issue in 11.2.1 : Hello,  See release notes -...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29137&amp;title=imagemanager-issue-in-11-2-1#29137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8991<br /><strong>Posted:</strong> 03 December 2007 at 3:21pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>See release notes - we modified imagemanager.&nbsp;&nbsp; You can create copy of handle before access:</DIV><DIV>&nbsp;</DIV>CXTPImageManagerIconHandle handle;<DIV>handle.CopyHandle(pIcon-&gt;GetIcon());</DIV><DIV>&nbsp;</DIV><DIV>m_ImageList.Add(CBitmap::FromHandle(handle.GetBitmap()), (CBitmap*)0);<BR></DIV><DIV>&nbsp;</DIV><DIV>But think you can better use direct methods that load alpha bitmaps. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>btw - CImageList supports 32bit alpha bitmaps only in WindowsXP, but CXTPImageManager for all OS.....</DIV>]]>
   </description>
   <pubDate>Mon, 03 Dec 2007 15:21:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29137&amp;title=imagemanager-issue-in-11-2-1#29137</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager issue in 11.2.1 : Sorry for the misinformation....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29125&amp;title=imagemanager-issue-in-11-2-1#29125</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2994">pavold</a><br /><strong>Subject:</strong> 8991<br /><strong>Posted:</strong> 03 December 2007 at 8:32am<br /><br />Sorry for the misinformation. I have just found out that GetBitmap() returns 0.<br>How can I get a valid handle?<br>]]>
   </description>
   <pubDate>Mon, 03 Dec 2007 08:32:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29125&amp;title=imagemanager-issue-in-11-2-1#29125</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager issue in 11.2.1 : Hi,After upgrading to toolkitpro...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29124&amp;title=imagemanager-issue-in-11-2-1#29124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2994">pavold</a><br /><strong>Subject:</strong> 8991<br /><strong>Posted:</strong> 03 December 2007 at 8:27am<br /><br />Hi,<br><br>After upgrading to toolkitpro 11.2.1, I have encountered a problem. <br><br>We are using CXTPImageManager to load icons for a treeview control.<br><br>Here is the code:<br><br>CImageList m_ImageList;<br>m_ImageList.Create(16, 16, ILC_MASK | ILC_COLOR32, 0, 0);<br><br>&lt;...&gt;<br><br>CXTPImageManagerIconSet*pIconSet=XTPImageManager()-&gt;GetIconSet(nIcon);<br>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(pIconSet==0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return false;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPImageManagerIcon* pIcon=pIconSet-&gt;GetIcon(16);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(pIcon==0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return false;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_ImageList.Add(CBitmap::FromHandle(pIcon-&gt;GetIcon().GetBitmap()), (CBitmap*)0);<br><br>The actual images are loaded to the image manager from a 32-bit png-file.<br><br>This worked fine with the version 11.1.3 . Now I cannot see any icons in the treeview. <br>Debugging showed that I get valid (not null) iconset and an icon. Event GetIcon().GetBitmap() seems to return a valid handle. <br><br>I've seen that the release notes mention some ImageManager changes, but I was not able to figure out what to do.<br><br>Best Regards,<br>Pavol<br>]]>
   </description>
   <pubDate>Mon, 03 Dec 2007 08:27:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8991&amp;PID=29124&amp;title=imagemanager-issue-in-11-2-1#29124</guid>
  </item> 
 </channel>
</rss>