<?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 : Where are the accelerators?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Where are the accelerators?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:43:41 +0000</pubDate>
  <lastBuildDate>Tue, 23 Aug 2005 06:50: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=2764</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[Where are the accelerators? : Thanks for the information. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8289&amp;title=where-are-the-accelerators#8289</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 2764<br /><strong>Posted:</strong> 23 August 2005 at 6:50am<br /><br /><P>Thanks for the information. I don't currently support customizing shortcuts but when I add that functionality I'll remember to put this back in.</P><P>So are you saying that the old registry settings for the shortcuts were overriding the command bar designer shortcuts, and if I was running this app for the first time on a new computer the shortcuts should work even with this line in the code?</P><P>Thanks again.</P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 06:50:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8289&amp;title=where-are-the-accelerators#8289</guid>
  </item> 
  <item>
   <title><![CDATA[Where are the accelerators? : hmm...  removing this line you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8288&amp;title=where-are-the-accelerators#8288</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2764<br /><strong>Posted:</strong> 23 August 2005 at 6:46am<br /><br /><P>hmm... </P><P>removing this line you don't allow users to customize shortcuts... (if allowed)</P><P>if you allow to customize shortcuts, try to restore this line and delete old registry settings.</P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 06:46:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8288&amp;title=where-are-the-accelerators#8288</guid>
  </item> 
  <item>
   <title><![CDATA[Where are the accelerators? : Oleg, you always know exactly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8281&amp;title=where-are-the-accelerators#8281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 2764<br /><strong>Posted:</strong> 23 August 2005 at 1:56am<br /><br /><P>Oleg, you always know exactly what to ask to help me find my own bugs. I noticed when pasting the above code into the reply that I had a leftover call to: </P><P><FONT face="Courier New" size=2>XTPShortcutManager()-&gt;LoadShortcuts(<FONT color=#0000ff>this</FONT>, lpProfile);</FONT></P><P>...which overrides the accelerators in the designer resource with whatever is in the registry. I removed that line and everything works as expected now.</P><P>Thanks!&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 01:56:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8281&amp;title=where-are-the-accelerators#8281</guid>
  </item> 
  <item>
   <title><![CDATA[Where are the accelerators? : Yes, MFC.  BOOL CMainFrame::LoadFrame(UINT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8278&amp;title=where-are-the-accelerators#8278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 2764<br /><strong>Posted:</strong> 23 August 2005 at 12:10am<br /><br /><P>Yes, MFC. </P><P><FONT face="Courier New, Courier, mono" size=2>BOOL CMainFrame::LoadFrame(UINT nIDResource, DWORD dwDefaultStyle, CWnd* pParentWnd, CCreateContext* pContext)<BR>{<BR></FONT><FONT face="Courier New, Courier, mono"><FONT size=2><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; if</FONT> (!CFrameWnd::LoadFrame(nIDResource, dwDefaultStyle, pParentWnd, pContext))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>return</FONT> FALSE;</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp; GenerateCommandBars();</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp; LoadCommandBars(lpProfile);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp; XTPShortcutManager()-&gt;LoadShortcuts(<FONT color=#0000ff>this</FONT>, lpProfile);</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=2><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; return</FONT> TRUE;<BR>}</FONT></FONT></P><P><FONT size=1>calls...</FONT></P><FONT color=#0000ff><P><FONT face="Courier New, Courier, mono" size=2>void</FONT></FONT><FONT face="Courier New, Courier, mono" size=2> CMainFrame::GenerateCommandBars()<BR></FONT><FONT face="Courier New, Courier, mono" size=2>{<BR></FONT><FONT size=2><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<BR></FONT><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; pCommandBars-&gt;SetMenu( _T("Menu Bar"), 0);</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp; HRSRC hRsrs = FindResource(AfxGetInstanceHandle(), <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAKEINTRESOURCE(IDR_COMMAND_BARS_V2), _T("COMMAND_BAR_DATA"));</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp; ASSERT(hRsrs);</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=2><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; if</FONT> (hRsrs)<BR></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; {<BR></FONT><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HGLOBAL hGlobal = LoadResource(AfxGetInstanceHandle(), hRsrs);</FONT></FONT></P><P><FONT size=2><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if</FONT> (hGlobal)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR></FONT><FONT face="Courier New, Courier, mono"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; DWORD dwSize = SizeofResource(AfxGetInstanceHandle(), hRsrs);</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; LPVOID pData = LockResource(hGlobal);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; CMemFile file((BYTE*)pData, dwSize);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; CArchive ar(&amp;file, CArchive::load | CArchive::bNoFlushOnDelete);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; pCommandBars-&gt;LoadDesignerBars(ar);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; XTAuxData().InitResources(AfxGetInstanceHandle());<BR></FONT><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>}</FONT></P><P><FONT face="Courier New" size=2>Thanks.</FONT></P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 00:10:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8278&amp;title=where-are-the-accelerators#8278</guid>
  </item> 
  <item>
   <title><![CDATA[Where are the accelerators? : So you use it in MFC project?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8276&amp;title=where-are-the-accelerators#8276</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2764<br /><strong>Posted:</strong> 23 August 2005 at 12:00am<br /><br /><P>So you use it in MFC project? Where you call LoadDesignerBars?</P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 00:00:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8276&amp;title=where-are-the-accelerators#8276</guid>
  </item> 
  <item>
   <title><![CDATA[Where are the accelerators? : When I create an interface in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8269&amp;title=where-are-the-accelerators#8269</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 2764<br /><strong>Posted:</strong> 22 August 2005 at 4:09pm<br /><br /><P>When I create an interface in the Command Bar Designer I add many keyboard accelerators. They show up on the menus when looking at the proejct in the command bar designer.</P><P>When I load the interface into my application's main frame using LoadDesignerBars( ar ) the UI looks correct, and all of the defined IDs are there and work fine, but none of my custom accelerators show up on the menus. </P><P>Any clue as to what am I forgetting to do?</P><P>Thanks.</P><span style="font-size:10px"><br /><br />Edited by robosport</span>]]>
   </description>
   <pubDate>Mon, 22 Aug 2005 16:09:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2764&amp;PID=8269&amp;title=where-are-the-accelerators#8269</guid>
  </item> 
 </channel>
</rss>