AnsweredAssumed Answered

Determine which Command Item is selected on ArcMaps standard Command Bar

Question asked by Jamari_L_Powers on Nov 24, 2014
Latest reply on Nov 25, 2014 by ebrimhall

I am working with Add-Ins in ArcMap using VS2010 and C#. I have a question in regards to ArcObjects ICommandBar and ICommandItem classes. I've looked at these and have been able to produce code, that on button click, will select or activate a specified command item. So I know somethings about command bars. My question is how would I go about determining which command Item is active on a Command Bar? I didn't see any helpful methods in which to do so.


I'm not all too sure which to even use at this point, between the ICommandBars object or the ICommandBar object. I've also discovered (I think) that the value/ref for the standard tool bar is:   "{5DEB1DB8-C2A9-11D1-B9A2-080009EE4E51}" .


I believe this is correct. Also, when I say standard tool bar, I mean the one with the select element tool on it.


Any help on this would be greatly appreciated. Thanks in advance.