phiman67

ICommandItem.Refresh does not reread ICommand Caption (version 10)

Discussion created by phiman67 on Aug 15, 2011
Latest reply on Aug 26, 2011 by dstajanesri-ca-esridist
I am migrating an ArcMap 9.3 extension to version 10.  After a particular user action I am changing the caption value for an ICommand instance.  In previous versions of ArcObjects this change would be shown to the user immediately.  In version 10 the change to the command's caption does not result in any repaint of the gui.  To fix this I am calling the Refresh method of the ICommandItem object which holds the ICommand.  The API states that calling Refresh will cause "the command item to be redrawn on the CommandBar in order to correctly display any new property changes."
Is there something I'm missing?

Outcomes