• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Disabling a toolbar button is not working for my Dialog based app

I have developed a dialog based MFC application having some toolbar buttons.
Disabling a toolbar button is not working for my Dialog based app.
 I added a message handler function (for UPDATE_COMMAND_UI) for the toolbar button.But it is not functioning.Why?
0
sjhunjhunuwala
Asked:
sjhunjhunuwala
1 Solution
 
nutsnutsCommented:
Use pCmdUI->Enable(FALSE) in your message handler function(for UPDATE_COMMAND_UI)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now