<?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 : How to subclass controls from CommandBarDesigner?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to subclass controls from CommandBarDesigner?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 15:12:25 +0000</pubDate>
  <lastBuildDate>Mon, 20 Dec 2010 04:47: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=17694</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[How to subclass controls from CommandBarDesigner? : Hi,Yes, when you load it from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17694&amp;PID=61920&amp;title=how-to-subclass-controls-from-commandbardesigner#61920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17694<br /><strong>Posted:</strong> 20 December 2010 at 4:47am<br /><br />Hi,<div><br></div><div>Yes, when you load it from designer OncreateControl won't be called beacause all controls already created in designer. &nbsp;so you can use CXTPControls::FindControl method, remove old and add new with &nbsp;CXTPControls::Add method.</div>]]>
   </description>
   <pubDate>Mon, 20 Dec 2010 04:47:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17694&amp;PID=61920&amp;title=how-to-subclass-controls-from-commandbardesigner#61920</guid>
  </item> 
  <item>
   <title><![CDATA[How to subclass controls from CommandBarDesigner? : Hi!If I create my ribbon bars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17694&amp;PID=61879&amp;title=how-to-subclass-controls-from-commandbardesigner#61879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5380">maxxan</a><br /><strong>Subject:</strong> 17694<br /><strong>Posted:</strong> 17 December 2010 at 2:49am<br /><br />Hi!<div>If I create my ribbon bars in the command bar designer and add, for example a combo box, how can I later subclass that to my inherited&nbsp;CXTPControlComboBox? Usually I do that in&nbsp;OnCreateControl, but that's not called for controls created in the command bar designer.</div><div><br></div><div>So what is the correct/nice way to do it?</div><div><br></div><div>This is how it was done before in OnCreateControl:</div><div><div>if (lpCreateControl-&gt;nID == ID_MY_CUSTOM_COMBO_BOX)</div><div>{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;lpCreateControl-&gt;pControl = new MyCustomComboBox();</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return TRUE;</div><div>&nbsp;}</div></div><div><br></div><div>Thanks!</div>]]>
   </description>
   <pubDate>Fri, 17 Dec 2010 02:49:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17694&amp;PID=61879&amp;title=how-to-subclass-controls-from-commandbardesigner#61879</guid>
  </item> 
 </channel>
</rss>