<?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 : Gallery items not showing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Gallery items not showing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 05:09:10 +0000</pubDate>
  <lastBuildDate>Tue, 17 Apr 2007 00:39:02 +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=6887</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[Gallery items not showing : Hi,  try instead ILC_COLOR32...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6887&amp;PID=22014&amp;title=gallery-items-not-showing#22014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6887<br /><strong>Posted:</strong> 17 April 2007 at 12:39am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>try instead ILC_COLOR32&nbsp; use ILC_COLOR24 if you have masked bitmaps.</DIV>]]>
   </description>
   <pubDate>Tue, 17 Apr 2007 00:39:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6887&amp;PID=22014&amp;title=gallery-items-not-showing#22014</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery items not showing : Hi,  Anybody can tell me why...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6887&amp;PID=22003&amp;title=gallery-items-not-showing#22003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6887<br /><strong>Posted:</strong> 16 April 2007 at 3:54pm<br /><br /><P>Hi,</P><P>&nbsp;</P><P>Anybody can tell me why images are not showing in gallery ???<BR>I need to load separate bitmaps from resource to show them in gallery control:</P><P>&nbsp;</P><P>Code 1 : -&gt; Onlyone bitmap to show -&gt; doesnt work</P><FONT size=2><P><FONT size=1>m_pDatabases = CXTPControlGalleryItems::CreateItems( pCommandBars, ID_GALLERY_DATABASE );</FONT></P><P><FONT size=1>ASSERT( m_pDatabases != NULL );</FONT></P><P></FONT><FONT size=1>m_pDatabases-&gt;GetImageManager()-&gt;SetMaskColor(RGB(<FONT color=#800000>255</FONT>,<FONT color=#800000>0</FONT>,<FONT color=#800000>255</FONT>));</FONT></P><P><FONT size=1>m_pDatabases-&gt;GetImageManager()-&gt;SetIcons(IDB_FLAG_ENGLAND, <FONT color=#800000>0</FONT>, <FONT color=#800000>0</FONT>, CSize(<FONT color=#800000>32</FONT>, <FONT color=#800000>32</FONT>));</FONT></P><P><FONT color=#008000><FONT size=1>//m_pItems-&gt;SetItemSize(CSize(56, 56));</FONT></P></FONT><P><FONT size=1>m_pDatabases-&gt;AddItem(<FONT color=#800000>0</FONT>, <FONT color=#800000>0</FONT>);</FONT></P><DIV>&nbsp;</DIV><DIV><FONT size=2>Code 2) Loading images to imagelist -&gt; doesnt work</FONT></DIV><DIV><FONT color=#008000 size=2><FONT size=1>UINT uiFlags&#091;&#093;= { IDB_FLAG_UNITED_KINGDOM, </FONT></DIV><DIV><P><FONT size=1>IDB_FLAG_ENGLAND, IDB_FLAG_SCOTLAND, IDB_FLAG_WALES, IDB_FLAG_NORTHERN_IRELAND,</FONT></P><P><FONT size=1>IDB_FLAG_EUROPEAN_UNION, IDB_FLAG_UNITED_STATES_OF_AMERICA, IDB_FLAG_CANADA, IDB_FLAG_AUSTRALIA, IDB_FLAG_NEW_ZEALAND, -1 };</P><FONT color=#008000 size=1><P>m_pItemsDatabase-&gt;GetImageManager()-&gt;SetMaskColor(RGB(255,0,255));</P></FONT><P><FONT color=#008000>CImageList img;</P></FONT><P><FONT color=#008000>img.Create(48,48,ILC_COLOR32 | ILC_MASK, 0,1);</P></FONT><P><FONT color=#008000>for (int i = 0; i &lt; _countof(uiFlags); i++)</P></FONT><P><FONT color=#008000>{</P></FONT><P><FONT color=#008000>&nbsp;CBitmap bmp;</P></FONT><P><FONT color=#008000>&nbsp;bmp.LoadBitmap(uiFlags&#091;i&#093;);</P></FONT><P><FONT color=#008000>&nbsp;img.Add(&amp;bmp, RGB(255,0,255));</P></FONT><P><FONT color=#008000>&nbsp;bmp.DeleteObject();</P></FONT><P><FONT color=#008000>}</P></FONT><P><FONT color=#008000>m_pItemsDatabase-&gt;GetImageManager()-&gt;SetIcons(img, 0, 0, CSize(48, 48));</P></FONT><P><FONT color=#008000>m_pItemsDatabase-&gt;SetItemSize(CSize(56, 56));</P></FONT><P><FONT color=#008000>for (int nStyle = 0; nStyle &lt; _countof(uiFlags); nStyle++)</P></FONT><P><FONT color=#008000>{</P></FONT><P><FONT color=#008000>&nbsp;CXTPControlGalleryItem* pItem = m_pItemsDatabase-&gt;AddItem(nStyle, nStyle);</P></FONT><P><FONT color=#008000 size=2><FONT size=1>}</P><DIV><FONT size=3>Do anybody know the solution ?</FONT></DIV></FONT></FONT></FONT></DIV><DIV><FONT size=1></FONT></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 Apr 2007 15:54:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6887&amp;PID=22003&amp;title=gallery-items-not-showing#22003</guid>
  </item> 
 </channel>
</rss>