Solved

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

Posted on 2000-02-26
1
201 Views
Last Modified: 2013-11-20
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
Comment
Question by:sjhunjhunuwala
1 Comment
 
LVL 1

Accepted Solution

by:
nutsnuts earned 30 total points
ID: 2561119
Use pCmdUI->Enable(FALSE) in your message handler function(for UPDATE_COMMAND_UI)
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 78
Macro to save highlighted rows as a separate file 5 43
unable to delete all specified values regedit 38 420
canBalance challenge 34 85
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question