<?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 : Derived control doesn&#039;t work in collapsed group</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Derived control doesn&#039;t work in collapsed group]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 07:12:17 +0000</pubDate>
  <lastBuildDate>Fri, 15 Jan 2010 08:00:28 +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=16017</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[Derived control doesn&#039;t work in collapsed group :   To suit my needs for a control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16017&amp;PID=56162&amp;title=derived-control-doesnt-work-in-collapsed-group#56162</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2876">DavidH</a><br /><strong>Subject:</strong> 16017<br /><strong>Posted:</strong> 15 January 2010 at 8:00am<br /><br />To suit my needs for a control on the Ribbon, I derived a new class from it:<br><br>class ValueEditRibbon: public CXTPControlEdit{<br>public:<br>...<br>protected:<br>&nbsp; BOOL OnHookKeyDown(UINT nChar, LPARAM lParam);<br>private:<br>...<br>};<br><br>I use the OnHookKeyDown to make sure only certain patterns can be entered (numerical values with fractions).<br><br>I put it on the ribbon like this:<br>ValueEditRibbon* veValue(new ValueEditRibbon());<br>pGroup-&gt;Add(veValue, ID_EDITABLE_VALUE);<br><br>This all works fine.<br><br>When I make the application screen small, the group with this control collapses. This is intended behavior of course.<br>However, when I click the arrow down to unfold it, the edit box is there, butits OnHookKeyDown is no longer called. The control seems to be cast down to aCControlEditRibbon.<br><br><img src="uploads/20100115_075704_collapsedgroupp.png" height="323" width="353" border="0"><br><br>What can I do to make it work?<br><br>Thanks,<br><br>David.<br>]]>
   </description>
   <pubDate>Fri, 15 Jan 2010 08:00:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16017&amp;PID=56162&amp;title=derived-control-doesnt-work-in-collapsed-group#56162</guid>
  </item> 
 </channel>
</rss>