<?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 : XTP crashes with bitmaps with alpha channels!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : XTP crashes with bitmaps with alpha channels!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:16:59 +0000</pubDate>
  <lastBuildDate>Mon, 29 Jan 2007 05:40:10 +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=6233</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[XTP crashes with bitmaps with alpha channels! :     oleg wrote:Hi,  Add LR_CREATEDIBSECTION...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19830&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 6233<br /><strong>Posted:</strong> 29 January 2007 at 5:40am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi,<div>&nbsp;</div><div>Add LR_CREATEDIBSECTION flag for LoadImage call.</div></td></tr></table><br><br>That avoids the crash, but transparency doesn't work.<br><br>No problem on W2k SP4, only W2k SP2 here, but others have reported the problem also with W2k SP4 and XP Home.<br><br>]]>
   </description>
   <pubDate>Mon, 29 Jan 2007 05:40:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19830&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19830</guid>
  </item> 
  <item>
   <title><![CDATA[XTP crashes with bitmaps with alpha channels! : No.  But I sure reason in LR_CREATEDIBSECTION....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19791&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19791</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6233<br /><strong>Posted:</strong> 27 January 2007 at 2:43am<br /><br />No. <DIV>But I sure reason in LR_CREATEDIBSECTION.</DIV>]]>
   </description>
   <pubDate>Sat, 27 Jan 2007 02:43:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19791&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19791</guid>
  </item> 
  <item>
   <title><![CDATA[XTP crashes with bitmaps with alpha channels! : Hello Oleg,have you been able...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19778&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19778</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 6233<br /><strong>Posted:</strong> 26 January 2007 at 2:39pm<br /><br />Hello Oleg,<br><br>have you been able to reproduce the crash?<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Fri, 26 Jan 2007 14:39:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19778&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19778</guid>
  </item> 
  <item>
   <title><![CDATA[XTP crashes with bitmaps with alpha channels! : ... You can call CXTPImageManagerIcon::LoadBitmapFromFile...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19776&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19776</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6233<br /><strong>Posted:</strong> 26 January 2007 at 2:31pm<br /><br /><DIV>... You can call CXTPImageManagerIcon::LoadBitmapFromFile that automatically detect if it has Alpha channel/png file.</DIV>]]>
   </description>
   <pubDate>Fri, 26 Jan 2007 14:31:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19776&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19776</guid>
  </item> 
  <item>
   <title><![CDATA[XTP crashes with bitmaps with alpha channels! : Hi,  Add LR_CREATEDIBSECTION...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19775&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19775</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6233<br /><strong>Posted:</strong> 26 January 2007 at 2:29pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Add LR_CREATEDIBSECTION flag for LoadImage call.</DIV>]]>
   </description>
   <pubDate>Fri, 26 Jan 2007 14:29:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19775&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19775</guid>
  </item> 
  <item>
   <title><![CDATA[XTP crashes with bitmaps with alpha channels! : I&amp;#039;ve got several reports...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19764&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19764</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 6233<br /><strong>Posted:</strong> 26 January 2007 at 11:40am<br /><br />I've got several reports that the application crashes after the upgrade to 10.40.<br><br>I was able to reproduce the crash and to track it down. It crashes as soon as I add a bitmap (.bmp, not .png) with an alpha channel to the QAT.<br><br>It doesn't crash on every PC but I've been able to reproduce it on a clean Win2K SP2 English installation.<br><br><br><br>In the RibbonSample add a <b>CBitmap m_bitmap;</b> to the CMainFrame class and in LoadIcons add the following lines: <br><br>void CMainFrame::LoadIcons ()<br>{<br><b>&nbsp;</b>&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<b><br><br>&nbsp;&nbsp;&nbsp; HANDLE hBitmap = ::LoadImage (NULL, _T("EditUndo.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE);<br><br>&nbsp;&nbsp;&nbsp; m_bitmap.Attach (hBitmap);<br><br>&nbsp;&nbsp;&nbsp; UINT nId = ID_EDIT_UNDO;<br><br>&nbsp;&nbsp;&nbsp; pCommandBars-&gt;GetImageManager()-&gt;SetIcons(m_bitmap, &amp;nId, 1, CSize(16,16), xtpImageNormal, TRUE);<br>&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; //<strike>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDR_SMALLICONS);</strike><br></b>....<br>}<br><br>I've attached the modified files as well as the bitmap.<br><br><a href="uploads/20070126_113431_Crash.zip" target="_blank">uploads/20070126_113431_Crash.zip</a><br><br><br><img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><br><img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle">]]>
   </description>
   <pubDate>Fri, 26 Jan 2007 11:40:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6233&amp;PID=19764&amp;title=xtp-crashes-with-bitmaps-with-alpha-channels#19764</guid>
  </item> 
 </channel>
</rss>