Posted 14 years ago by Bill Jacquot
What is the mechanism in BarCommand that asks it to update its Enabled state? I'm accustomed to MFC like mechanisms where the commands are told to update their Enabled state during AppIdle. In my particular case, each command needs to make a call into unmanaged code to determine whether or not the command should be enabled. I'm subclassing BarButtonCommand and I thought I could override Enabled but it isn't virtual. Is there a way to hook in custom logic to determine the Enabled state? And how do you tickle the command (or BarManager) to get the Enabled state updated every so often?