<?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 : Problem Status bar icon</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Problem Status bar icon]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 13:46:30 +0000</pubDate>
  <lastBuildDate>Thu, 16 Nov 2006 17:15:53 +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=5528</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[Problem Status bar icon : Set the incon index for the pane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5528&amp;PID=17387&amp;title=problem-status-bar-icon#17387</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=976">pascal</a><br /><strong>Subject:</strong> 5528<br /><strong>Posted:</strong> 16 November 2006 at 5:15pm<br /><br /><P>Set the incon index for the pane in which you want to show the icon. </P><DIV><FONT color=#000000 size=2>1. retrieve the pane index:</FONT></DIV><DIV><FONT color=#000000 size=2>int</FONT><FONT size=2><FONT color=#000000> nIndex = CommandToIndex(ID_INDICATOR_THEPANE);<BR></FONT><FONT color=#000000>ASSERT( nIndex != -1 );<BR></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#000000>2. retrieve the pane object<BR></FONT><FONT color=#000000>CXTPStatusBarPane* pPane = GetPane(nIndex);<BR></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#000000>3. set the icon index</DIV></FONT></FONT><DIV><FONT color=#000000 size=2>pPane-&gt;SetIconIndex(uCommandID);</FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2>Note uCommandID is a resource ID. An icon must be mapped to this ID. The is the case for toolbar buttons, menus etc. To create a map, you can use e.g. the method </FONT><FONT color=#000000 size=2><FONT size=2>XTPImageManager()-&gt;SetIcons( ... ).</FONT></FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2>regards</FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2>pascal</DIV></FONT>]]>
   </description>
   <pubDate>Thu, 16 Nov 2006 17:15:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5528&amp;PID=17387&amp;title=problem-status-bar-icon#17387</guid>
  </item> 
  <item>
   <title><![CDATA[Problem Status bar icon : Since I upgraded to 10.x, icons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5528&amp;PID=17330&amp;title=problem-status-bar-icon#17330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=243">rocco</a><br /><strong>Subject:</strong> 5528<br /><strong>Posted:</strong> 15 November 2006 at 9:23am<br /><br />Since I upgraded to 10.x, icons in the statusbar have no longer transparent background. Nothig has changed in my code. Do I something wrong?<br><br><table width="99%"><tr><td><pre class="BBcode"><br>   <!-- Start Member Post -->      <p><font face="Courier New, Courier, mono">// .h<br>CXTP<span ="highlight">StatusBar</span> m_wnd<span ="highlight">StatusBar</span><br>CXTP<span ="highlight">StatusBar</span><span ="highlight">Icon</span>Pane m_wnd<span ="highlight">Icon</span>Pane</font></p><p><font face="Courier New, Courier, mono">// Mainfrm.cpp<br>static UINT indicators&#091;&#093; =<br>{<br>&nbsp;ID_INDICATOR_<span ="highlight">ICON</span>&nbsp;&nbsp;// Service indicator<br>};<br><br>(In OnCreate method)</font></p><p><font face="Courier New, Courier, mono">&nbsp;if (!m_wnd<span ="highlight">StatusBar</span>.Create(this) ||<br>&nbsp;&nbsp;!m_wnd<span ="highlight">StatusBar</span>.SetIndicators(indicators,<br>&nbsp;&nbsp;sizeof(indicators)/sizeof(UINT)))<br>&nbsp;{<br>&nbsp;&nbsp;TRACE0("Failed to create status bar\n");<br>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<br>&nbsp;}</font><br><font face="Courier New, Courier, mono">&nbsp;// -----&gt; <span ="highlight">Icon</span> Pane<br>&nbsp;if (!m_wnd<span ="highlight">Icon</span>Pane.Create(NULL, &amp;m_wnd<span ="highlight">StatusBar</span>))<br>&nbsp;{<br>&nbsp;&nbsp;TRACE0("Failed to create <span ="highlight">icon</span> pane.\n");<br>&nbsp;&nbsp;return -1;<br>&nbsp;}<br>&nbsp;<br>&nbsp;// Initialize the pane info and add the control.<br>&nbsp;int nIndex = m_wnd<span ="highlight">StatusBar</span>.CommandToIndex(ID_INDICATOR_<span ="highlight">ICON</span>);<br>&nbsp;ASSERT (nIndex != -1);</font></p><font face="Courier New, Courier, mono">&nbsp;m_wnd<span ="highlight">StatusBar</span>.SetPaneWidth(nIndex, xtAfxData.cxSm<span ="highlight">Icon</span>);<br>&nbsp;m_wnd<span ="highlight">StatusBar</span>.AddControl(&amp;m_wnd<span ="highlight">Icon</span>Pane, ID_INDICATOR_<span ="highlight">ICON</span>, FALSE);<br></pre></td></tr></table><br></font>]]>
   </description>
   <pubDate>Wed, 15 Nov 2006 09:23:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5528&amp;PID=17330&amp;title=problem-status-bar-icon#17330</guid>
  </item> 
 </channel>
</rss>