<?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 : CXTPStatusBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPStatusBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 02:07:20 +0000</pubDate>
  <lastBuildDate>Fri, 18 Jul 2008 02:01:34 +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=11441</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[CXTPStatusBar : Dear Sir,Thanks a lot for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38537&amp;title=cxtpstatusbar#38537</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4323">Surbhi</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 18 July 2008 at 2:01am<br /><br />Dear Sir,<br>Thanks a lot for the input. My problem is solved <img src="http://forum.codejock.com/smileys/smiley20.gif" border="0" align="absmiddle"> I am very grateful to you.<br>Best Regards,<br>Surbhi Mehta <br>]]>
   </description>
   <pubDate>Fri, 18 Jul 2008 02:01:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38537&amp;title=cxtpstatusbar#38537</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar : Hello,  Now you&amp;#039;re right...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38470&amp;title=cxtpstatusbar#38470</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 16 July 2008 at 1:23pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Now you're right :( Buttons in statusbar assumes statusbar located in Frame.</DIV><DIV>&nbsp;</DIV><DIV>Please add small derived class</DIV><DIV>&nbsp;</DIV><FONT color=#0000ff size=1><FONT color=#0000ff size=1><P>class</FONT></FONT><FONT size=1> </FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>CMyStatusBar</FONT></FONT><FONT size=1> : </FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>public</FONT></FONT><FONT size=1> </FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>CXTPStatusBar</P></FONT></FONT><FONT size=1><P>{</P><P></FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>void</FONT></FONT><FONT size=1> </FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>OnPaneClick</FONT></FONT><FONT size=1>(</FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>CXTPStatusBarPane</FONT></FONT><FONT size=1>* </FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>pPane</FONT></FONT><FONT size=1>)</P><P>{</P><P></FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>GetParent</FONT></FONT><FONT size=1>()-&gt;</FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>SendMessage</FONT></FONT><FONT size=1>(</FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>WM_COMMAND</FONT></FONT><FONT size=1>, </FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>pPane</FONT></FONT><FONT size=1>-&gt;</FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>GetID</FONT></FONT><FONT size=1>());</P><P>}</P><P>};</P><DIV></DIV><P>&nbsp;</P><P>and replace</P><DIV></DIV><FONT color=#030003 size=1><FONT color=#030003 size=1><P>CXTPStatusBar</FONT></FONT><FONT size=1> </FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>m_wndStatusBar</FONT></FONT><FONT size=1>;</P><DIV></DIV>to<DIV></DIV><FONT color=#030003 size=1><FONT color=#030003 size=1><P>CMyStatusBar</FONT></FONT><FONT size=1> </FONT><FONT color=#030003 size=1><FONT color=#030003 size=1>m_wndStatusBar</FONT></FONT><FONT size=1>;</P><DIV></DIV><DIV></DIV>it will be fixed in next release</FONT></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 16 Jul 2008 13:23:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38470&amp;title=cxtpstatusbar#38470</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar :  Dear Sir,Thanks alot for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38453&amp;title=cxtpstatusbar#38453</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4323">Surbhi</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 16 July 2008 at 7:10am<br /><br />Dear Sir,<br>Thanks alot for the input.I implemented your suggestion. But still the crash is persistent. Sir could you&nbsp; please&nbsp; send&nbsp; me&nbsp; a&nbsp; Dialog Based&nbsp; Sample which has a status bar with a button and its event is handled. I am sure it would be of great help to me.<br>Thanking you in anticipation,<br>Surbhi&nbsp; Mehta<br>Software Developer.<br><a href="uploads/20080716_081933_mydialog.zip" target="_blank">uploads/20080716_081933_mydialog.zip</a><br>]]>
   </description>
   <pubDate>Wed, 16 Jul 2008 07:10:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38453&amp;title=cxtpstatusbar#38453</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar : Hi,  Not sure why you have CXTPStatusBarPane*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38447&amp;title=cxtpstatusbar#38447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 16 July 2008 at 5:50am<br /><br /><P>Hi,</P><DIV>&nbsp;</DIV><DIV>Not sure why you have CXTPStatusBarPane* pPane in class declaration but think it can be reason.</DIV><DIV>&nbsp;</DIV><DIV>declare it in method:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CXTPStatusBarPane* pPane= m_wndStatusBar.AddIndicator(0);<BR><BR></DIV>]]>
   </description>
   <pubDate>Wed, 16 Jul 2008 05:50:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38447&amp;title=cxtpstatusbar#38447</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar : Dear Sir,Thanks for the input....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38440&amp;title=cxtpstatusbar#38440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4323">Surbhi</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 16 July 2008 at 1:54am<br /><br />Dear Sir,<br>Thanks for the input. Here is the code <br>//Declaration<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPStatusBar m_wndStatusBar;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPStatusBarPane* pPane;<br><br>//Implementation<br>BOOL CDialogSampleDlg::CreateStatusBar()<br>{<br>&nbsp;&nbsp;&nbsp; if (!m_wndStatusBar.Create(this))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create status bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; pPane = m_wndStatusBar.AddIndicator(0);<br>&nbsp;&nbsp;&nbsp; pPane-&gt;SetWidth(100);<br>&nbsp;&nbsp;&nbsp; pPane-&gt;SetStyle(SBPS_STRETCH | SBPS_NOBORDERS);<br>&nbsp;&nbsp;&nbsp; pPane-&gt;SetBeginGroup(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; pPane = m_wndStatusBar.AddIndicator(IDC_BTN_FIRST_STATUS,1);<br>&nbsp;&nbsp;&nbsp; pPane-&gt;SetText(_T("First"));<br>&nbsp;&nbsp;&nbsp; pPane-&gt;SetButton(TRUE);<br>&nbsp;&nbsp;&nbsp; pPane-&gt;SetPadding(50, 0, 50, 0);<br>&nbsp;&nbsp;&nbsp; pPane-&gt;SetWidth(pPane-&gt;GetBestFit());<br><br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br><br>//Calling<br>BOOL CDialogSampleDlg::OnInitDialog()<br>{<br>&nbsp;&nbsp;&nbsp; CDialog::OnInitDialog();<br><br><br>&nbsp;&nbsp;&nbsp; if (!CreateStatusBar())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br><br>&nbsp;&nbsp;&nbsp; if (!InitCommandBars())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<br>&nbsp;&nbsp;&nbsp; m_wndStatusBar.SetCommandBars(pCommandBars);<br><br>return TRUE;<br>}<br><br>Sir&nbsp; on the&nbsp; click of&nbsp; button&nbsp; it&nbsp; crashes&nbsp; ,&nbsp; Even though I had handled<br>its&nbsp; event&nbsp; <br><br>ON_COMMAND(IDC_BTN_FIRST_STATUS, OnBtnFirst)<br><br>In OnBtnFirst I had implemented A MessageBox only.<br>Sir could&nbsp; you&nbsp; please guide me about change of Class or anything.<br>Thanking you in anticipation,<br>Best Regards,<br>Surbhi Mehta<br>Software Developer<br>]]>
   </description>
   <pubDate>Wed, 16 Jul 2008 01:54:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38440&amp;title=cxtpstatusbar#38440</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar : Hi, Attach what you have with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38439&amp;title=cxtpstatusbar#38439</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 16 July 2008 at 1:09am<br /><br />Hi,<DIV>Attach what you have with crush. I will show how to fix it.</DIV>]]>
   </description>
   <pubDate>Wed, 16 Jul 2008 01:09:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38439&amp;title=cxtpstatusbar#38439</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar : Dear Sir,Thanks a lot for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38434&amp;title=cxtpstatusbar#38434</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4323">Surbhi</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 15 July 2008 at 11:20pm<br /><br />Dear Sir,<br>Thanks a lot for the input. But even trying out your solution is causing the Dialog&nbsp; Application to crash. I have created a a function CreateStatusBar() and calling it in OnInitDialog(). Sir Could you please provide me with more inputs if possible. I will be very grateful to you.<br>Thanking you in anticipation,<br><br>Best Regards,<br>Surbhi Mehta<br>Software Developer.<br>]]>
   </description>
   <pubDate>Tue, 15 Jul 2008 23:20:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38434&amp;title=cxtpstatusbar#38434</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar : Hi,  Just add simple pane and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38386&amp;title=cxtpstatusbar#38386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 15 July 2008 at 9:23am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Just add simple pane and call pPane-&gt;SetButton(TRUE);</DIV>]]>
   </description>
   <pubDate>Tue, 15 Jul 2008 09:23:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38386&amp;title=cxtpstatusbar#38386</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar : Hi,I want to create a button on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38350&amp;title=cxtpstatusbar#38350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4323">Surbhi</a><br /><strong>Subject:</strong> 11441<br /><strong>Posted:</strong> 15 July 2008 at 12:44am<br /><br />Hi,<br>I want to create a button on status Bar, and add functionality to it in a Dialog Application. <br>Please can you guide me proper steps for it.<br>Thanking in anticipation,<br>Regards,<br>Surbhi Mehta<br>]]>
   </description>
   <pubDate>Tue, 15 Jul 2008 00:44:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11441&amp;PID=38350&amp;title=cxtpstatusbar#38350</guid>
  </item> 
 </channel>
</rss>