<?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 : GetActiveDocumentID Event Not Firing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : GetActiveDocumentID Event Not Firing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 21:24:07 +0000</pubDate>
  <lastBuildDate>Wed, 15 Aug 2007 02:07:42 +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=7799</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[GetActiveDocumentID Event Not Firing : Hello,  Please send request...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7799&amp;PID=25121&amp;title=getactivedocumentid-event-not-firing#25121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7799<br /><strong>Posted:</strong> 15 August 2007 at 2:07am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Please send request to <a href="mailto:support@codejock.com" target="_blank">support@codejock.com</A>.</DIV>]]>
   </description>
   <pubDate>Wed, 15 Aug 2007 02:07:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7799&amp;PID=25121&amp;title=getactivedocumentid-event-not-firing#25121</guid>
  </item> 
  <item>
   <title><![CDATA[GetActiveDocumentID Event Not Firing : I am using the CommandBars ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7799&amp;PID=25112&amp;title=getactivedocumentid-event-not-firing#25112</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3220">cradke</a><br /><strong>Subject:</strong> 7799<br /><strong>Posted:</strong> 14 August 2007 at 5:44pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">I am using the CommandBars ActiveX control in an MDI (non-MFC) C++ app.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The app has multiple document types that each have a different menu to be displayed when active.&nbsp; The problem is that the GetActiveDocumentID event is not getting fired when a new document is added or an existing document is activated and therefore I can’t set the proper document specific menu.&nbsp;&nbsp;</P><DIV></SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>&nbsp;</o:p></SPAN></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">This is the case when either the document's window is clicked or the document's associated tab in the TabWorkspace is clicked.&nbsp;&nbsp; The event does get called when&nbsp;the app closes and when&nbsp;the Customize dialog is closed if the Menus page has been selected.&nbsp; In this second case I can successfully switch the menu from the default to one of my document menus. <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">I used the </SPAN><FONT size=2><SPAN lang=EN style="COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">IMenuBarMDIMenus collection obtained from the ActiveMenu to add my menubars for the various document types.&nbsp; These menus&nbsp;correctly show up in Customize dialog on Menus page.&nbsp; The rest of my code was taken from the CommandBars\WTL\WTLSample project.</SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=2><SPAN lang=EN style="COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">My questions for getting this show-stopper working are as follows.</SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=2><SPAN lang=EN style="COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">Is there a way to force the GetActiveDocumentID event to be fired?</SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=2><SPAN lang=EN style="COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">Is there an alternate way to swap the menus without losing the ability to customize them? (e.g.&nbsp; GetActiveMenu()-&gt;Delete(), m_spCommandBars-&gt;AddMenu())</SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=2><SPAN lang=EN style="COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">Could you provide&nbsp;a WTL MDI sample that shows this working?</SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="mso-ansi-: EN"><FONT size=2>Sincerely,<o:p></o:p></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="mso-ansi-: EN"><FONT size=2>Christopher Radke<o:p></o:p></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="mso-ansi-: EN"><FONT size=2>Applied Wave Research<o:p></o:p></FONT></SPAN></P>]]>
   </description>
   <pubDate>Tue, 14 Aug 2007 17:44:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7799&amp;PID=25112&amp;title=getactivedocumentid-event-not-firing#25112</guid>
  </item> 
 </channel>
</rss>