<?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 : Switching Windows with Keypad Numbers</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Switching Windows with Keypad Numbers]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 05:16:41 +0000</pubDate>
  <lastBuildDate>Sat, 14 Jun 2008 05:18:15 +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=10567</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[Switching Windows with Keypad Numbers : Hi, Download 12.0 release. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=36732&amp;title=switching-windows-with-keypad-numbers#36732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10567<br /><strong>Posted:</strong> 14 June 2008 at 5:18am<br /><br />Hi,<DIV>Download 12.0 release.</DIV>]]>
   </description>
   <pubDate>Sat, 14 Jun 2008 05:18:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=36732&amp;title=switching-windows-with-keypad-numbers#36732</guid>
  </item> 
  <item>
   <title><![CDATA[Switching Windows with Keypad Numbers : I tried that and am seeing crashes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=36720&amp;title=switching-windows-with-keypad-numbers#36720</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 10567<br /><strong>Posted:</strong> 13 June 2008 at 6:17pm<br /><br /><FONT size=2>I tried that and am seeing crashes - if not on the first call, then on the second.&nbsp; </FONT><FONT size=2>The call to <FONT color=#800080><FONT color=#800080>CXTPShortcutManager</FONT></FONT><FONT color=#000080><FONT color=#000080>::</FONT></FONT>CompareAccelKey appears to being doing what is expected of it.&nbsp; However, a few lines after it returns to <FONT color=#800080><FONT color=#800080>CXTPCommandBar</FONT></FONT><FONT color=#000080><FONT color=#000080>::</FONT></FONT>OnKeyboardTipChar I get the crash in the call to OnKeyboardTip.&nbsp; At that point, pTip-&gt;m_pOwner usually points to freed memory (0xfeeefeee).&nbsp; </FONT><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>The stack is</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>&nbsp;&nbsp;CObject::IsKindOf(0x070e17d4)&nbsp;C++<BR>&nbsp;&nbsp;AfxDynamicDownCast(0x070e17d4, 0x20fc7728)&nbsp;C++<BR>&nbsp;&nbsp;CXTPCommandBar::OnKeyboardTip(0x20fc5c78)&nbsp;C++<BR>&nbsp;&nbsp;CXTPCommandBar::OnKeyboardTipChar(0x00000062)&nbsp;C++<BR>&nbsp;&nbsp;CXTPCommandBar::OnHookKeyDown(0x00000062, 0x00500001)&nbsp;C++<BR>&nbsp;&nbsp;CXTPPopupBar::OnHookKeyDown(0x00000062, 0x00500001)&nbsp;C++<BR>&nbsp;&nbsp;CXTPCommandBar::OnHookMessage(0x00000000, 0x00000100, 0x00000062, 0x00500001, 0x00000000)&nbsp;C++<BR>&nbsp;&nbsp;CXTPKeyboardManager::ProcessKeyboardHooks(0x00000100, 0x00000062, 0x00500001)&nbsp;C++<BR>&nbsp;&nbsp;CXTPKeyboardManager::KeyboardProc(0x00000000, 0x00000062, 0x00500001)&nbsp;C++</FONT></DIV><DIV><FONT size=2><BR>&nbsp;</DIV></FONT><DIV><FONT size=2>I've tried debugging it to see how pOwner is going bad, but with&nbsp;breakpoints in place, the crash goes away.&nbsp; I tried making the breakpoints conditional&nbsp;</FONT><FONT size=2>on the owner data looking wacky &#091;eg (*((*pTip).m_pOwner)).m_dwRef &lt; 0 || (*((*pTip).m_pOwner)).m_dwRef &gt; 100&#093;.&nbsp; Sometimes they fire, but other times I crash without the breakpoints firing.&nbsp; In those cases the data doesn't look freed, but since I'm crashing something must be bad.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Any thoughts?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 13 Jun 2008 18:17:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=36720&amp;title=switching-windows-with-keypad-numbers#36720</guid>
  </item> 
  <item>
   <title><![CDATA[Switching Windows with Keypad Numbers : Hi,  try add these lines in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=34985&amp;title=switching-windows-with-keypad-numbers#34985</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10567<br /><strong>Posted:</strong> 09 May 2008 at 1:23am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>try add these lines in sources:</DIV><DIV>&nbsp;</DIV><DIV>BOOL CXTPShortcutManager::CompareAccelKey(TCHAR chAccel, UINT wParam)<BR>{<BR>&nbsp;if (wParam &gt;= VK_NUMPAD0 &amp;&amp; wParam &lt;= VK_NUMPAD9)<BR>&nbsp;&nbsp;return (UINT)chAccel == (wParam + '0' - VK_NUMPAD0);<BR>...</DIV>]]>
   </description>
   <pubDate>Fri, 09 May 2008 01:23:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=34985&amp;title=switching-windows-with-keypad-numbers#34985</guid>
  </item> 
  <item>
   <title><![CDATA[Switching Windows with Keypad Numbers : In 11.2.0 and 11.2.1, I can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=34974&amp;title=switching-windows-with-keypad-numbers#34974</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 10567<br /><strong>Posted:</strong> 08 May 2008 at 6:02pm<br /><br />In 11.2.0 and 11.2.1, I can't switch windows in my MDI ribbon app using the numbers on the keypad.&nbsp; That is, create a few windows, then hit Alt-V-S-enter then 0 or 1 or 2.&nbsp; The numbers above the keyboard work fine.&nbsp; This fails in the RibbonMDISample as well.&nbsp; It just dings at me.&nbsp; However,&nbsp;the samples&nbsp;work in 11.2.2 and 12.0.&nbsp; <DIV>&nbsp;</DIV><DIV>What's the difference?&nbsp; Was it a bug or did the sample change the way it does something?&nbsp; Is there anything I can do in 11.2.0 to make this work?</DIV><DIV></DIV>]]>
   </description>
   <pubDate>Thu, 08 May 2008 18:02:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10567&amp;PID=34974&amp;title=switching-windows-with-keypad-numbers#34974</guid>
  </item> 
 </channel>
</rss>