<?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 : XP Ic&#111;ns w diferent behaviour/Interfaces</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : XP Ic&#111;ns w diferent behaviour/Interfaces]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 21:17:26 +0000</pubDate>
  <lastBuildDate>Thu, 01 Sep 2005 11:09:55 +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=2819</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[XP Ic&#111;ns w diferent behaviour/Interfaces : Hi Oleg, Thanks, usingLoadAlphaIcon(...)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8460&amp;title=xp-icons-w-diferent-behaviour-interfaces#8460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1034">andre</a><br /><strong>Subject:</strong> 2819<br /><strong>Posted:</strong> 01 September 2005 at 11:09am<br /><br /><P>Hi Oleg,</P><P><BR>Thanks, using&nbsp;LoadAlphaIcon(...) all icons&nbsp;look fine.</P><P>Regards</P>]]>
   </description>
   <pubDate>Thu, 01 Sep 2005 11:09:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8460&amp;title=xp-icons-w-diferent-behaviour-interfaces#8460</guid>
  </item> 
  <item>
   <title><![CDATA[XP Ic&#111;ns w diferent behaviour/Interfaces : You must say before, that you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8457&amp;title=xp-icons-w-diferent-behaviour-interfaces#8457</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2819<br /><strong>Posted:</strong> 01 September 2005 at 8:56am<br /><br /><P>You must say before, that you load it from file :)</P><P>Here some source you can use:</P><P>HBITMAP hBitmap = CXTPImageManagerIcon::LoadAlphaIcon(Path, 0);</P><P>&nbsp;if (hBitmap)<BR>&nbsp;{<BR>&nbsp;&nbsp;SetIcon(hBitmap, Command, 0, (XTPImageState)imageState);</P><P>&nbsp;&nbsp;DeleteObject(hBitmap);</P><P>&nbsp;} else<BR>&nbsp;{<BR>&nbsp;&nbsp;HICON hIcon = (HICON)LoadImage(0, Path,<BR>&nbsp;&nbsp;&nbsp;IMAGE_ICON, 0, 0, LR_CREATEDIBSECTION | LR_LOADFROMFILE);</P><P>&nbsp;&nbsp;if (!hIcon)<BR>&nbsp;&nbsp;&nbsp;return;</P><P>&nbsp;&nbsp;SetIcon(hIcon, Command, 0, (XTPImageState)imageState);</P><P>&nbsp;&nbsp;DestroyIcon(hIcon);<BR><BR>&nbsp;}<BR></P>]]>
   </description>
   <pubDate>Thu, 01 Sep 2005 08:56:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8457&amp;title=xp-icons-w-diferent-behaviour-interfaces#8457</guid>
  </item> 
  <item>
   <title><![CDATA[XP Ic&#111;ns w diferent behaviour/Interfaces : Hi Oleg, I have the latest 9.70. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8452&amp;title=xp-icons-w-diferent-behaviour-interfaces#8452</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1034">andre</a><br /><strong>Subject:</strong> 2819<br /><strong>Posted:</strong> 01 September 2005 at 6:29am<br /><br /><P>Hi Oleg,</P><P>I have the latest 9.70.</P><P>I admit&nbsp;I did not explain well the "super.ico" example, it is the user that chooses the icon file not me. so I'm not able to insert it in the resource, because I do not know which icon to insert...I have to load it at runtime with LoadImage. </P><P>But what I don't understand is that&nbsp;some controls kind of like imagelist while some others don't. Why diferent behaviours ? If one control knows how to display XP icons loaded with LoadImage and then inserted in&nbsp; ILC_COLOR32 image list, why some others do not ?</P><P>In the screenshot I send, you can see that TabControl, DockManager, and TaskPanel display the icon correctly while ToolBar and Shortcut bar don't.</P><P>Since I do not have this problem with Alpha bitmaps,</P><P>what I really need is something like this...</P><P>HICON h;</P><P>AlphaBitmap bitmap;</P><P>bitmap = ConvertIcon2AlphaBitmap( h );</P><P>Is there a function like this in the toolkit ?</P><P>&nbsp;</P><P>André</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 01 Sep 2005 06:29:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8452&amp;title=xp-icons-w-diferent-behaviour-interfaces#8452</guid>
  </item> 
  <item>
   <title><![CDATA[XP Ic&#111;ns w diferent behaviour/Interfaces : What version do you have? If 9.70...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8441&amp;title=xp-icons-w-diferent-behaviour-interfaces#8441</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2819<br /><strong>Posted:</strong> 31 August 2005 at 2:18pm<br /><br /><P>What version do you have? If 9.70 use </P><P>CXTPImageManager::SetIcon(nIDResourceIcon, nIDCommand) method to add alpha icon supported for all OS.</P><P>Anyway check attached converted Alpha bitmap</P><P><A href="http://forum.codejock.com/uploads/oleg/2005-08-31_141650_super.zip" target="_blank">2005-08-31_141650_super.zip</A></P><P>Add it using</P><P>SetIcons(nIDResourceBitmap, pCommands, nCount);</P>]]>
   </description>
   <pubDate>Wed, 31 Aug 2005 14:18:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8441&amp;title=xp-icons-w-diferent-behaviour-interfaces#8441</guid>
  </item> 
  <item>
   <title><![CDATA[XP Ic&#111;ns w diferent behaviour/Interfaces : Hi Oleg, I know CXTPShortcutBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8439&amp;title=xp-icons-w-diferent-behaviour-interfaces#8439</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1034">andre</a><br /><strong>Subject:</strong> 2819<br /><strong>Posted:</strong> 31 August 2005 at 8:07am<br /><br /><P>Hi Oleg,</P><P>I know CXTPShortcutBar show alpha bitmaps, I'm also using XP.</P><P>The problem is that not all controls show the ImageList the same way.</P><P>Anyway&nbsp;I do not know how to convert a&nbsp;XP icon file( check "super.ico" in attach )&nbsp;to xtreme alpha bitmaps, can you please help out ?</P><P>This screenshot shows the diferences</P><P><A href="http://forum.codejock.com/uploads/andre/2005-08-31_080639_ic&#111;n_problem.zip" target="_blank">2005-08-31_080639_icon_problem.zip</A><A href="http://forum.codejock.com/uploads/andre/2005-08-31_075935_ic&#111;n_problem.zip" target="_blank"></A></P><P>Thank you</P>]]>
   </description>
   <pubDate>Wed, 31 Aug 2005 08:07:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8439&amp;title=xp-icons-w-diferent-behaviour-interfaces#8439</guid>
  </item> 
  <item>
   <title><![CDATA[XP Ic&#111;ns w diferent behaviour/Interfaces : Hello, Are you sure your alpha...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8434&amp;title=xp-icons-w-diferent-behaviour-interfaces#8434</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2819<br /><strong>Posted:</strong> 31 August 2005 at 3:36am<br /><br /><P>Hello,</P><P>Are you sure your alpha bitmap is valid? As you can see ShortcutBar sample show Alpha bitmaps without problem.</P><P>I suggest you don't use CImagList with alpha images because it supoprted only by WinXP, but to add directly&nbsp;alpha bitmap to image manager.&nbsp;</P><P>CXTPImaegManager::SetIcons(IDB_BITMAP,...)</P><P>it supports alpha images for all OS.</P>]]>
   </description>
   <pubDate>Wed, 31 Aug 2005 03:36:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8434&amp;title=xp-icons-w-diferent-behaviour-interfaces#8434</guid>
  </item> 
  <item>
   <title><![CDATA[XP Ic&#111;ns w diferent behaviour/Interfaces : Hi, Why do somecontrols implement...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8426&amp;title=xp-icons-w-diferent-behaviour-interfaces#8426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1034">andre</a><br /><strong>Subject:</strong> 2819<br /><strong>Posted:</strong> 30 August 2005 at 1:02pm<br /><br /><P>Hi,</P><P>&nbsp;Why do some&nbsp;controls&nbsp; implement the function SetImageList and some others do not&nbsp;?</P><P>&nbsp;&nbsp;How can I show XP icons in CXTPToolbar and CXTShortcutBar using the&nbsp; CImageList that I use in other controls like CXTPTabControl ?</P><P>&nbsp;Thank You</P><P>CImageList il;</P><P>// create image list with XP icons</P><P>//</P><P>// This works OK</P><P>CXTPTabControl.SetImageList( &amp;il );</P><P>CXTPTaskPanel::SetImageList( &amp;il );</P><P>// This shows a gray rectangle instead of the alpha layer...</P><P>CXTPToolBar::GetImageManager()-&gt;SetIcons( il, 0, 0, 0, xtpImageNormal);</P><P>CXTPShortcutBar::GetPaintManager()-&gt;SetIcons( il, 0, 0, 0, xtpImageNormal );</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 30 Aug 2005 13:02:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2819&amp;PID=8426&amp;title=xp-icons-w-diferent-behaviour-interfaces#8426</guid>
  </item> 
 </channel>
</rss>