Re: How to disable (gray out) a button on the toolbar?
- From: "Cyde Weys" <cyde@xxxxxxx>
- Date: 8 Aug 2005 13:08:16 -0700
Ale wrote:
> Usually a toolbar button has the same ID of Menu item...
> ON_UPDATE_COMMAND_UI() will apply on both Menu and Toolbar throw the
> framework...
Thanks a lot! That got it working perfectly.
And let me add, for the lurkers out there - VC++ .NET doesn't have the
same nice right-click "Add Event Handler" for toolbar buttons as it
does for menu options, but if you just use the added code for menu
options as a template and adjust the ID appropriately it will work.
.
- Follow-Ups:
- Re: How to disable (gray out) a button on the toolbar?
- From: Joseph M . Newcomer
- Re: How to disable (gray out) a button on the toolbar?
- References:
- How to disable (gray out) a button on the toolbar?
- From: Cyde Weys
- RE: How to disable (gray out) a button on the toolbar?
- From: Ale
- How to disable (gray out) a button on the toolbar?
- Prev by Date: Re: A Very Simple BHO
- Next by Date: Re: How to disable (gray out) a button on the toolbar?
- Previous by thread: RE: How to disable (gray out) a button on the toolbar?
- Next by thread: Re: How to disable (gray out) a button on the toolbar?
- Index(es):