<?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 : Assert in CustomizeKeyboardPage</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Assert in CustomizeKeyboardPage]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:17:31 +0000</pubDate>
  <lastBuildDate>Tue, 01 Aug 2006 09:29:16 +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=4688</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[Assert in CustomizeKeyboardPage : Hello, no, it is designed behaviour....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14509&amp;title=assert-in-customizekeyboardpage#14509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4688<br /><strong>Posted:</strong> 01 August 2006 at 9:29am<br /><br />Hello,<DIV>no, it is designed behaviour. don't change it.&nbsp; Just delete old xml configuration file.</DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 09:29:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14509&amp;title=assert-in-customizekeyboardpage#14509</guid>
  </item> 
  <item>
   <title><![CDATA[Assert in CustomizeKeyboardPage : More investigation seems that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14498&amp;title=assert-in-customizekeyboardpage#14498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4688<br /><strong>Posted:</strong> 31 July 2006 at 5:25pm<br /><br /><P>More investigation seems that if the saved XML file doesnt have any shortcut section then it clears the accelerator table and cant fill it back with anything.</P><DIV></DIV><P>What it ought to do is only UpdateAcellTable (CXTPShortcutManager::DoPropExchange) if "accels.GetSize()" then it will only replace when there is something to replace it with. </P><P>Or even modify "CXTPShortcutManager::UpdateAcellTable":</P><DIV><table width="99%"><tr><td><pre class="BBcode">void CXTPShortcutManager::UpdateAcellTable(LPACCEL lpAccel, int nSize)<BR>{<BR>&nbsp;HACCEL hAccelNew = ::CreateAcceleratorTable(lpAccel, nSize);</DIV><DIV>&nbsp;if( hAccelNew )</DIV><DIV>&nbsp;{</DIV><DIV>&nbsp; &nbsp;SAFE_DESTROY_ACCELTABLE(m_hAccelTable);</DIV><DIV>&nbsp; &nbsp;m_hAccelTable = hAccelNew;</DIV><DIV>&nbsp;}<BR>}<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 31 Jul 2006 17:25:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14498&amp;title=assert-in-customizekeyboardpage#14498</guid>
  </item> 
  <item>
   <title><![CDATA[Assert in CustomizeKeyboardPage : What I found is that my DoPropExchange...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14497&amp;title=assert-in-customizekeyboardpage#14497</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4688<br /><strong>Posted:</strong> 31 July 2006 at 5:15pm<br /><br />What I found is that my DoPropExchange on (first time) is destroying the accelerator table ready for loading in, but there is nothing to load in so now I have no accelerators.<DIV>&nbsp;</DIV><DIV>Any ideas what to do?</DIV>]]>
   </description>
   <pubDate>Mon, 31 Jul 2006 17:15:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14497&amp;title=assert-in-customizekeyboardpage#14497</guid>
  </item> 
  <item>
   <title><![CDATA[Assert in CustomizeKeyboardPage : Problem is, I am not getting any...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14496&amp;title=assert-in-customizekeyboardpage#14496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4688<br /><strong>Posted:</strong> 31 July 2006 at 3:43pm<br /><br /><P>Problem is, I am not getting any of my mainframe shortcuts in the customize dialog or available to my application without using the "SetAccelerators(IDR_SGENIETYPE)".</P>]]>
   </description>
   <pubDate>Mon, 31 Jul 2006 15:43:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14496&amp;title=assert-in-customizekeyboardpage#14496</guid>
  </item> 
  <item>
   <title><![CDATA[Assert in CustomizeKeyboardPage : Don&amp;#039;t call pCommandBars-...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14494&amp;title=assert-in-customizekeyboardpage#14494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4688<br /><strong>Posted:</strong> 31 July 2006 at 3:22pm<br /><br />Don't call<DIV>pCommandBars-&gt;GetShortcutManager()-&gt;SetAccelerators( IDR_SGENIETYPE );</DIV><DIV>just </DIV><DIV>pCommandBars-&gt;GetShortcutManager()-&gt;SetAccelerators( IDR_MAINFRAME );</DIV><DIV>&nbsp;</DIV><DIV>only last accelerators for last call used.</DIV>]]>
   </description>
   <pubDate>Mon, 31 Jul 2006 15:22:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14494&amp;title=assert-in-customizekeyboardpage#14494</guid>
  </item> 
  <item>
   <title><![CDATA[Assert in CustomizeKeyboardPage : I am getting an ASSERT in CXTPCustomizeKeyboardPage...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14493&amp;title=assert-in-customizekeyboardpage#14493</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4688<br /><strong>Posted:</strong> 31 July 2006 at 2:55pm<br /><br />I am getting an ASSERT in CXTPCustomizeKeyboardPage Constructor:<DIV><table width="99%"><tr><td><pre class="BBcode">&nbsp;ASSERT(pSheet-&gt;GetCommandBars()-&gt;GetShortcutManager()-&gt;GetOriginalAccelerator());</pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>These are my calls in CMainFrm::OnCreate:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">&nbsp;pCommandBars-&gt;GetCommandBarsOptions()-&gt;ShowKeyboardCues( xtpKeyboardCuesShowWindowsDefault );<BR>&nbsp;pCommandBars-&gt;GetToolTipContext()-&gt;SetStyle( xtpToolTipOffice );<BR>&nbsp;pCommandBars-&gt;GetShortcutManager()-&gt;SetAccelerators( IDR_MAINFRAME );<BR>&nbsp;pCommandBars-&gt;GetShortcutManager()-&gt;SetAccelerators( IDR_SGENIETYPE );<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Why is this, whats an OriginalAccelerator, why do I need it and why isnt it there?</DIV><DIV>&nbsp;</DIV><DIV>I am not using "LoadCommandBars" to load/save them, I am using PropExchange.</DIV><DIV>&nbsp;</DIV><DIV>Can you point me in the right direction.</DIV>]]>
   </description>
   <pubDate>Mon, 31 Jul 2006 14:55:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4688&amp;PID=14493&amp;title=assert-in-customizekeyboardpage#14493</guid>
  </item> 
 </channel>
</rss>