<?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 : How to get menu bar handle?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to get menu bar handle?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 03:50:07 +0000</pubDate>
  <lastBuildDate>Thu, 04 Dec 2008 21:58:04 +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=12815</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[How to get menu bar handle? : Hi,  One of our client application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43436&amp;title=how-to-get-menu-bar-handle#43436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4772">pad_32</a><br /><strong>Subject:</strong> 12815<br /><strong>Posted:</strong> 04 December 2008 at 9:58pm<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>One of our client application is using Xtreme command bars. Its version is 8.7.0.0 . Is there any method to know the menu item status (Disable/Enable) programmatically from another application</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 04 Dec 2008 21:58:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43436&amp;title=how-to-get-menu-bar-handle#43436</guid>
  </item> 
  <item>
   <title><![CDATA[How to get menu bar handle? : Hi,  I see it has class name...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43349&amp;title=how-to-get-menu-bar-handle#43349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12815<br /><strong>Posted:</strong> 02 December 2008 at 2:35am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I see it has class name "Afx:004..." it means it _very_ old version that didn't support accesibility :-(</DIV>]]>
   </description>
   <pubDate>Tue, 02 Dec 2008 02:35:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43349&amp;title=how-to-get-menu-bar-handle#43349</guid>
  </item> 
  <item>
   <title><![CDATA[How to get menu bar handle? : BOOL CALLBACK // callback for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43313&amp;title=how-to-get-menu-bar-handle#43313</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4758">arty</a><br /><strong>Subject:</strong> 12815<br /><strong>Posted:</strong> 01 December 2008 at 6:32am<br /><br /><font face="Times New Roman, Times, serif">BOOL CALLBACK // callback for EnumChildWindows<br />EnumChildProc(HWND hwnd, LPARAM lParam)<br />{<br />  IDispatch** ppMenu;<br />  AccessibleObjectFromWindow(hwnd, OBJID_NATIVEOM, IID_IDispatch, (void**) ppMenu); <br />  // ppMenu is always null (even when hwnd=000103BE)<br />  return TRUE;<br />}</font><br /><br />Here is code I use to get menu. As you see AccessibleObjectFromWindow  is called for every child in window. I tried to insert OBJID_MENU instead of OBJID_NATIVEOM like dwObjectID parameter and IID_IAccessible instead of IID_IDispatch, but result is &#8220;te je yaica, vid sboku&#8221;.<br /><br /><img src="uploads/20081201_064631_spy++.JPG" border="0"><br />Window with handle 000103B0 is main window.<br />Window with handle 000103BE is my menu I need to get access.]]>
   </description>
   <pubDate>Mon, 01 Dec 2008 06:32:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43313&amp;title=how-to-get-menu-bar-handle#43313</guid>
  </item> 
  <item>
   <title><![CDATA[How to get menu bar handle? : HI,  Its not that easy :( our...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43306&amp;title=how-to-get-menu-bar-handle#43306</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12815<br /><strong>Posted:</strong> 01 December 2008 at 4:40am<br /><br />HI,<DIV>&nbsp;</DIV><DIV>Its not that easy :( our Menus have no HMENU handles. But indeed can try Accessibility feature that we support. You have call <strong>AccessibleObjectFromWindow </strong>for Menu window - see it in Spy++ - its window with XTPToolBar class.</DIV>]]>
   </description>
   <pubDate>Mon, 01 Dec 2008 04:40:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43306&amp;title=how-to-get-menu-bar-handle#43306</guid>
  </item> 
  <item>
   <title><![CDATA[How to get menu bar handle? : Oleg, please could you help me....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43273&amp;title=how-to-get-menu-bar-handle#43273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4758">arty</a><br /><strong>Subject:</strong> 12815<br /><strong>Posted:</strong> 28 November 2008 at 9:11am<br /><br />Oleg, please could you help me. I have a task to emulate a call of menu item (in dynamic menu) in third-party application which uses codejock toolkit. I&#8217;m a newbie at C++ but here is my plan. With help of Spy++ I found out that I can <strong>SendMessage</strong> to the main window with <strong>WM_COMMAND</strong> and <strong>wID</strong>. And it works! But at the moment I can&#8217;t get a <strong>wID</strong> (for testing I used <strong>wID</strong> from Spy). So then I used <strong>EnumChildWindows</strong> for getting all controls and tried to get menu handle with <strong>GetMenu</strong>&#8230;<br /><br /><em>Remarks from MSDN:  GetMenu does not work on floating menu bars. Floating menu bars are custom controls that mimic standard menus; they are not menus. To get the handle on a floating menu bar, use the Active Accessibility APIs.</em><br /><br />and <strong>AccessibleObjectFromWindow</strong>. But every time I&#8217;ve received null. Is there another way to do that?]]>
   </description>
   <pubDate>Fri, 28 Nov 2008 09:11:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12815&amp;PID=43273&amp;title=how-to-get-menu-bar-handle#43273</guid>
  </item> 
 </channel>
</rss>