<?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 : Shortcuts in Menus inside dialogs</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Shortcuts in Menus inside dialogs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 21:16:27 +0000</pubDate>
  <lastBuildDate>Fri, 08 Jul 2005 09:39:31 +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=2546</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[Shortcuts in Menus inside dialogs : OK, now I upgraded, but theGetCommandBars()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7587&amp;title=shortcuts-in-menus-inside-dialogs#7587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=807">Uwe Keim</a><br /><strong>Subject:</strong> 2546<br /><strong>Posted:</strong> 08 July 2005 at 9:39am<br /><br /><P>OK, now I upgraded, but the&nbsp;<FONT face="Courier New" color=#990000>GetCommandBars()</FONT> function at the top of:</P><P><FONT face="Courier New, Courier, mono" color=#990000>void CXTPPopupBar::UpdateShortcuts()<BR>{<BR>&nbsp;CXTPCommandBars* pCommandBars = <strong>GetCommandBars();</strong><BR>&nbsp;if (!pCommandBars)<BR>&nbsp;&nbsp;return;<BR>&nbsp; ...</FONT></P><P>Always returns a <FONT face="Courier New, Courier, mono" color=#990000>NULL</FONT> pointer inside my dialog-hosted menu bar.</P><P><FONT size=2><strong>Question: </strong>Any chance of getting the shortcut-manager called inside a dialog?</FONT></P><P>Of course I'm continuing to research, but maybe you still can help.</P><P>Thanks<BR>Uwe</P>]]>
   </description>
   <pubDate>Fri, 08 Jul 2005 09:39:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7587&amp;title=shortcuts-in-menus-inside-dialogs#7587</guid>
  </item> 
  <item>
   <title><![CDATA[Shortcuts in Menus inside dialogs : Cool, thank you!  I will download...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7583&amp;title=shortcuts-in-menus-inside-dialogs#7583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=807">Uwe Keim</a><br /><strong>Subject:</strong> 2546<br /><strong>Posted:</strong> 08 July 2005 at 7:43am<br /><br /><P>Cool, thank you! <IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0">&nbsp;</P><P>I will download immediately.</P>]]>
   </description>
   <pubDate>Fri, 08 Jul 2005 07:43:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7583&amp;title=shortcuts-in-menus-inside-dialogs#7583</guid>
  </item> 
  <item>
   <title><![CDATA[Shortcuts in Menus inside dialogs : Last version (9.70)of CXTPPopupBar::UpdateShortcuts...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7571&amp;title=shortcuts-in-menus-inside-dialogs#7571</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2546<br /><strong>Posted:</strong> 08 July 2005 at 5:50am<br /><br /><P>Last version (9.70)&nbsp;of CXTPPopupBar::UpdateShortcuts look like:</P><P>void CXTPPopupBar::UpdateShortcuts()<BR>{<BR>&nbsp;CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;if (!pCommandBars)<BR>&nbsp;&nbsp;return;</P><P>&nbsp;if  (!pCommandBars-&gt;GetCommandBarsOptions()-&gt;bAutoUpdateSh ortcuts)<BR>&nbsp;&nbsp;return;</P><P>&nbsp;foreach (pControl, TRUE)<BR>&nbsp;{<BR>&nbsp;&nbsp;CString strShortcut;<BR>&nbsp;&nbsp;if (pControl-&gt;GetID() != 0)<BR>&nbsp;&nbsp;{<BR> &nbsp;&nbsp;&nbsp;XTPShortcutManager()-&gt;FindDefaultAccele rator(pControl-&gt;GetID(), strShortcut, pCommandBars);<BR>&nbsp;&nbsp;&nbsp;pControl-&gt;m_strShortcutTextAuto = strShortcut;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}</P>]]>
   </description>
   <pubDate>Fri, 08 Jul 2005 05:50:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7571&amp;title=shortcuts-in-menus-inside-dialogs#7571</guid>
  </item> 
  <item>
   <title><![CDATA[Shortcuts in Menus inside dialogs : Dear support, maybe you can help...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7563&amp;title=shortcuts-in-menus-inside-dialogs#7563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=807">Uwe Keim</a><br /><strong>Subject:</strong> 2546<br /><strong>Posted:</strong> 08 July 2005 at 2:27am<br /><br /><P>Dear support, maybe you can help me:</P><P>I derived and replaced <FONT face="Courier New, Courier, mono" color=#990000>CXTPShortcutManager</FONT> in order to implement the automatic drawing of shortcut-texts in menus inside dialogs.</P><P>Unfortunately the function <FONT face="Courier New, Courier, mono" color=#990000>CXTPPopupBar::UpdateShortcuts</FONT> which actually calls the shortcut manager starts with:</P><P><FONT face="Courier New, Courier, mono" color=#990000>void CXTPPopupBar::UpdateShortcuts()<BR>{<BR>&nbsp;&nbsp;&nbsp; if (<strong>GetFrameSite</strong>() == NULL)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<BR>&nbsp;&nbsp;&nbsp; ...</FONT></P><P>This <FONT face="Courier New, Courier, mono" color=#990000>GetFrameSite</FONT> returns <FONT face="Courier New, Courier, mono" color=#990000>NULL</FONT>, because I am inside a dialog, not inside a frame window.</P><P><FONT size=2><strong>Question:</strong> Is there a workaround/other solution for this?</FONT></P><P>I came <EM>that</EM> far, I would really be disappointed if I must end here...<IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0">.</P><P>Thanks<BR>Uwe</P>]]>
   </description>
   <pubDate>Fri, 08 Jul 2005 02:27:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2546&amp;PID=7563&amp;title=shortcuts-in-menus-inside-dialogs#7563</guid>
  </item> 
 </channel>
</rss>