How to Enable/Disable toolbar buttons on the fly

  • Thread starter Thread starter Dntc
  • Start date Start date
D

Dntc

Hi All
Is there anyway to enable/disable the toolbar buttons on the fly as like in
MFC which helps centralizing this process?Let's i have a toolbar button
ToolbarButtonSave
which can be enabled/disabled inside the Edit control TextChanged event
handler?I'm looking for a way which Toolbar can ask itself to enable/disable
its buttons as ON_UPDATE_COMMAND_UI in MFC?
 
Hi,

To the best of my knowledge, no such way exists. You should manually update
the status of the buttons whenever appropriate.
 
Back
Top