<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do I get an existing ArcMap context menu so I can add a custom command to it? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-an-existing-arcmap-context-menu-so-i/m-p/545842#M14780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The title says it all. All I'm asking for is an entry into this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add some custom commands I have written to a context menu that already exists (the one that defaults when you right-click the active data view actually).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I imagine I can get the context menu using a GUID or name, and I'm pretty sure that there are methods that allow me add a command using its GUID or name to the context menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can't seem to get past the concept to start seeing the design and code :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2011 20:49:53 GMT</pubDate>
    <dc:creator>DirkVandervoort</dc:creator>
    <dc:date>2011-05-05T20:49:53Z</dc:date>
    <item>
      <title>How do I get an existing ArcMap context menu so I can add a custom command to it?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-an-existing-arcmap-context-menu-so-i/m-p/545842#M14780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The title says it all. All I'm asking for is an entry into this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add some custom commands I have written to a context menu that already exists (the one that defaults when you right-click the active data view actually).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I imagine I can get the context menu using a GUID or name, and I'm pretty sure that there are methods that allow me add a command using its GUID or name to the context menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can't seem to get past the concept to start seeing the design and code :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 20:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-an-existing-arcmap-context-menu-so-i/m-p/545842#M14780</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2011-05-05T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an existing ArcMap context menu so I can add a custom command to it?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-an-existing-arcmap-context-menu-so-i/m-p/545843#M14781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Below code might help..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub main()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pUid As New UID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pUid.Value = "{3846A5B5-D3F8-44CB-BFA3-A5C30F4E535F}" ' Data view context menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pCmdBar As ICommandBar&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pCmdBar = Application.Document.CommandBars.Find(pUid)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ' Add some built-in ArcMap commands to the new toolbar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pCmdBar.Add ArcID.File_AddData&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pCmdBar.Popup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nikhil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 08:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-an-existing-arcmap-context-menu-so-i/m-p/545843#M14781</guid>
      <dc:creator>nikhilsastikar</dc:creator>
      <dc:date>2011-05-10T08:30:53Z</dc:date>
    </item>
  </channel>
</rss>

