<?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 : &#079;nCreateC&#111;ntrol w/ CXTPToolbar base</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : &#079;nCreateC&#111;ntrol w/ CXTPToolbar base]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 19:10:43 +0000</pubDate>
  <lastBuildDate>Fri, 04 Nov 2005 00:09:31 +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=3116</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[&#079;nCreateC&#111;ntrol w/ CXTPToolbar base : Hello, CXTPControl* pControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9410&amp;title=oncreatecontrol-w-cxtptoolbar-base#9410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3116<br /><strong>Posted:</strong> 04 November 2005 at 12:09am<br /><br /><P>Hello,</P><P>CXTPControl* pControl = pToolBar-&gt;GetControls()-&gt;FindControl(id);</P><P>but! don't forget that user can customize this toolbar and move button away.</P>]]>
   </description>
   <pubDate>Fri, 04 Nov 2005 00:09:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9410&amp;title=oncreatecontrol-w-cxtptoolbar-base#9410</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol w/ CXTPToolbar base : Oleg, OK... that sounds reasonable,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9386&amp;title=oncreatecontrol-w-cxtptoolbar-base#9386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1391">craig</a><br /><strong>Subject:</strong> 3116<br /><strong>Posted:</strong> 02 November 2005 at 3:03pm<br /><br /><P>Oleg,</P><P>OK... that sounds reasonable, but how can I get a hold of the control by ID?&nbsp; E.g. by ID.</P><P>I see how to get a toolbar by ID, I can get a list of controls,&nbsp;but haven't been able to figure out how to get a control by its ID.&nbsp; I need to modify this control in response to an event generated by a different control.</P><P>Thanks,</P><P>Craig</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 02 Nov 2005 15:03:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9386&amp;title=oncreatecontrol-w-cxtptoolbar-base#9386</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol w/ CXTPToolbar base : Don&amp;#039;t use member variables XTPControlComboBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9355&amp;title=oncreatecontrol-w-cxtptoolbar-base#9355</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3116<br /><strong>Posted:</strong> 31 October 2005 at 1:40am<br /><br /><P>Don't use member variables</P><P>XTPControlComboBox m_fontSizeCombo;<BR></P><P>create it dynamically:</P><P>CXTPControlComboBox* fontSizeCombo = new CXTPControlComboBox();</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 31 Oct 2005 01:40:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9355&amp;title=oncreatecontrol-w-cxtptoolbar-base#9355</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol w/ CXTPToolbar base : 2005-10-28_161431_FormatToolBar.zipWell......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9340&amp;title=oncreatecontrol-w-cxtptoolbar-base#9340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1391">craig</a><br /><strong>Subject:</strong> 3116<br /><strong>Posted:</strong> 28 October 2005 at 4:16pm<br /><br /><P><A href="http://forum.codejock.com/uploads/craig/2005-10-28_161431_&#070;ormatToolBar.zip" target="_blank">2005-10-28_161431_FormatToolBar.zip</A>Well... it doesn't work.</P><P>&nbsp;</P><P><IMG src="uploads/craig/2005-10-28_160656_errorbox.GIF" border="0"></P><P>This message appears in xtpcontrolcombobox.h in the following snippet:</P><FONT size=2><P>AFX_INLINE </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> CXTPControlComboBox::AddString(CString str) {</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> GetListBoxCtrl()-&gt;AddString(str);</P><P>}</P></FONT><P><FONT size=2></FONT>&nbsp;</P><P><FONT size=2>I've attached the CFormatBar class files.</FONT></P><P>In CMainFrame I did the following to pass the messages on:</P><FONT size=2><P></FONT><FONT face="Courier New, Courier, mono" size=1>BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)</FONT></P><P><strong><FONT face="Courier New, Courier, mono" color=#ff0000 size=1>ON_XTP_CREATECONTROL()</FONT></strong></P><P><FONT face="Courier New, Courier, mono" size=1>END_MESSAGE_MAP()</FONT></P><FONT color=#0000ff size=2><P><FONT face="Courier New, Courier, mono" size=1>int</FONT></FONT><FONT face="Courier New, Courier, mono" size=1> CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)</FONT></P><P><FONT face="Courier New, Courier, mono" size=1>{</FONT></P><P><FONT face="Courier New, Courier, mono" size=1>CXTPCommandBars* pCommandBars = GetCommandBars();</FONT></P><P><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>if</FONT><FONT face="Courier New, Courier, mono"> (pCommandBars != NULL)</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=1>{</FONT></P><P><FONT face="Courier New, Courier, mono" size=1>CXTPToolBar* pToolbar = pCommandBars-&gt;GetToolBar(IDR_FORMAT_TOOLBAR);</FONT></P><P><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>if</FONT><FONT face="Courier New, Courier, mono"> (pToolbar)</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=1>{</FONT></P><P><FONT face="Courier New, Courier, mono" size=1>CFormatToolBar* pFmtBar = (CFormatToolBar*) pToolbar;</FONT></P><P><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>return</FONT><FONT face="Courier New, Courier, mono"> pFmtBar-&gt;OnCreateControl(lpCreateControl);</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=1>}</FONT></P><P><FONT face="Courier New, Courier, mono" size=1>}</FONT></P><P><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>return</FONT><FONT face="Courier New, Courier, mono"> FALSE;</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=1>}</FONT></P>]]>
   </description>
   <pubDate>Fri, 28 Oct 2005 16:16:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9340&amp;title=oncreatecontrol-w-cxtptoolbar-base#9340</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol w/ CXTPToolbar base : ok. That&amp;#039;s what I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9336&amp;title=oncreatecontrol-w-cxtptoolbar-base#9336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1391">craig</a><br /><strong>Subject:</strong> 3116<br /><strong>Posted:</strong> 28 October 2005 at 1:59pm<br /><br /><P>ok.&nbsp; That's what I'm doing currently.</P><P>--Craig</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 28 Oct 2005 13:59:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9336&amp;title=oncreatecontrol-w-cxtptoolbar-base#9336</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol w/ CXTPToolbar base : WM_XTP_CREATECONTROL sends only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9322&amp;title=oncreatecontrol-w-cxtptoolbar-base#9322</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3116<br /><strong>Posted:</strong> 28 October 2005 at 3:57am<br /><br /><P>WM_XTP_CREATECONTROL sends only to parent CommandBars object (Frame).</P><P>You can catch it on frame and deliver to&nbsp;Toolbar object.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 28 Oct 2005 03:57:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9322&amp;title=oncreatecontrol-w-cxtptoolbar-base#9322</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol w/ CXTPToolbar base : I have a class CFormatToolBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9310&amp;title=oncreatecontrol-w-cxtptoolbar-base#9310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1391">craig</a><br /><strong>Subject:</strong> 3116<br /><strong>Posted:</strong> 27 October 2005 at 4:02pm<br /><br /><P>I have a class CFormatToolBar that derives from CXTPToolBar.&nbsp; I'm trying to keep the creation of the controls in that toolbar contained within that class.&nbsp; Is it possible to map the ON_XTP_CREATECONTROL() message in my derived class?&nbsp; Right now, the OnCreateControl method isn't getting called, although the toolbar is loading ok.</P><P>E.g Will the following work in a CXTPToolBar derived class?</P><FONT size=2><P>BEGIN_MESSAGE_MAP(CFormatToolBar, CXTPToolBar)ON_XTP_CREATECONTROL()<BR>END_MESSAGE_MAP()</P><P>Thanks,</P><P>Craig</P><P>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Thu, 27 Oct 2005 16:02:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3116&amp;PID=9310&amp;title=oncreatecontrol-w-cxtptoolbar-base#9310</guid>
  </item> 
 </channel>
</rss>