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?
sjhunjhunuwalaAsked:
Who is Participating?
 
nutsnutsConnect With a Mentor Commented:
Use pCmdUI->Enable(FALSE) in your message handler function(for UPDATE_COMMAND_UI)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.