<?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 : CXTPToolBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPToolBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 19:02:16 +0000</pubDate>
  <lastBuildDate>Thu, 28 Sep 2006 09:30:41 +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=5163</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[CXTPToolBar : Hi Oleg,  Thank you for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5163&amp;PID=16157&amp;title=cxtptoolbar#16157</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5163<br /><strong>Posted:</strong> 28 September 2006 at 9:30am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>Thank you for your prompt answer, the WM_XTP_COMMAND doesn't reach the WindowProc(...) of my CView class.</DIV><DIV>&nbsp;</DIV><DIV>Here is the main reason : the WM_XTP_COMMAND notification message is sent only if the <FONT size=2>m_pOwner member variable of the <FONT size=2>CXTPToolBar (in fact of the <FONT size=2>CXTPCommandBar) is set to the CWnd* (a pointer to my CView).</FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>There is a method called GetOwnerSite() that return this pointer, but there is no method called <strong>SetOwnerSite(CWnd*)</strong>, and the m_pOwner member variable is declared as protected.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Perhaps I should create my own ToolBar class derived from your CXTPToolBar and add this method, is it safe ?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Sergio</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Sep 2006 09:30:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5163&amp;PID=16157&amp;title=cxtptoolbar#16157</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar : Hi,  You can catch WM_XTP_COMMAND...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5163&amp;PID=16151&amp;title=cxtptoolbar#16151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5163<br /><strong>Posted:</strong> 28 September 2006 at 8:54am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can catch WM_XTP_COMMAND instead to get pointer of control. WM_COMMAND have no&nbsp; additional parameters.</DIV>]]>
   </description>
   <pubDate>Thu, 28 Sep 2006 08:54:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5163&amp;PID=16151&amp;title=cxtptoolbar#16151</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar : Hi everybody, How could I know...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5163&amp;PID=16145&amp;title=cxtptoolbar#16145</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5163<br /><strong>Posted:</strong> 28 September 2006 at 5:59am<br /><br /><P>Hi everybody,</P><DIV>How could I know the <FONT size=2>CXTPControl* pointer from within a notification command ? <img src="https://forum.codejock.com/smileys/smiley19.gif" border="0"></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><DIV dir=ltr><FONT size=2><FONT size=2>I need this functionality for a dynamic contextual menu in the ToolBar, that route to one function giving the menu item user data.</FONT></FONT></DIV><DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV></DIV><DIV><FONT size=2>My mainframe is doesn't use Codejock, I have used the ToolBar <FONT size=2>CXTPToolBar&nbsp;in a standard CView :</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>MyView.h</FONT></DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT size=2><FONT size=2>CXTPToolBar</FONT><FONT size=2> m_XTPToolBar;</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>afx_msg </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> OnButtonTest();</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>&nbsp;</DIV></FONT></FONT></BLOCKQUOTE><DIV dir=ltr><FONT size=2><FONT size=2>MyView.cpp</FONT></FONT></DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV dir=ltr><FONT size=2><FONT size=2><U>CMyView::OnInitialUpdate()</U></DIV></BLOCKQUOTE></FONT></FONT><FONT size=2><FONT size=2><FONT size=2><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>VERIFY( m_XTPToolBar.CreateToolBar( WS_VISIBLE | WS_CHILD | CBRS_TOOLTIPS, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2> ) );</P></FONT><FONT size=2><P>CXTPControl* pControl;</P><DIV>CXTPControls* pControls = m_XTPToolBar.GetControls();</DIV><DIV>pControl = pControls-&gt;Add( ...data of button test... );</DIV><DIV>if ( pControl )</DIV><DIV>{</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>DWORD dwItemData = 67; // Internal identifier</DIV><DIV>pControl-&gt;SetTag( dwItemData );</DIV></BLOCKQUOTE><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV dir=ltr><FONT size=2><FONT size=2><U>CMyView::OnButtonTest()</U></FONT></FONT></DIV><DIV dir=ltr><FONT size=2><FONT size=2><U></U></FONT></FONT>&nbsp;</DIV><DIV dir=ltr><FONT size=2><FONT size=2>CXTPControl* pControl = <strong><FONT color=#cc0000>m_XTPToolBar.GetCurrentActionControl()</FONT></strong>;</FONT></FONT></DIV><DIV dir=ltr><FONT size=2><FONT size=2>if ( pControl )</FONT></FONT></DIV><DIV dir=ltr><FONT size=2><FONT size=2>{</FONT></FONT></DIV><DIV dir=ltr><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>DWORD dwItemData = pControl-&gt;GetTag();</DIV><DIV>... do something with dwItemData ...</DIV></BLOCKQUOTE></DIV><DIV dir=ltr><FONT size=2><FONT size=2>}</FONT></FONT></DIV></DIV></BLOCKQUOTE><DIV dir=ltr><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV dir=ltr><FONT size=2><FONT size=2>Could you please help me as soon as possible <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0">&nbsp;? This is the last thing to&nbsp;complete my project. I need the&nbsp;feature&nbsp;in <strong><FONT color=#cc0000>red</FONT></strong>.</FONT></FONT></DIV><DIV dir=ltr><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV dir=ltr><FONT size=2><FONT size=2>Thank you in advance !</FONT></FONT></DIV><DIV dir=ltr><FONT size=2><FONT size=2>&nbsp;</DIV></FONT></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 28 Sep 2006 05:59:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5163&amp;PID=16145&amp;title=cxtptoolbar#16145</guid>
  </item> 
 </channel>
</rss>