Solved

Button in CDialogBar

Posted on 1998-08-06
3
344 Views
Last Modified: 2013-11-19
Hi experts.
I'm developing my app using VC++5.0 in WindowsNT4.0 SP3.
I installed a button control in a CDialogBar with associated handler.
But the button isn't enabled during runtime.
Can anyone let me know why and how to enable it ?
Thanks in advance.
0
Comment
Question by:okg
3 Comments
 
LVL 2

Expert Comment

by:bernfarr
ID: 1320290
When you added the button, presumably via the resource editor, did you check the Disabled option by accident?

Or, are you adding it during run time?
0
 
LVL 2

Accepted Solution

by:
jstolan earned 100 total points
ID: 1320291
The easiest way to do this is to give the button an ID that's the same as a particular menu item.  Usually you want the button to duplicate a menu item's functionality anyway.  

For example:

Go to the resource editor, and select properties for the button you're interested in.  Under the General tab type ID_FILE_NEW for the ID.  Now whenever the File New menu item is enabled, your button will be too.
0
 

Author Comment

by:okg
ID: 1320292
Dear jstolan
Thanks.
But your recommendation doesn't match with my need.

Dear bernfarr
No.
Thanks anyway.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Running shell command from Access 3 63
sum28 challenge 31 96
MaxSpan challenge 9 67
scoreUp challenge 14 48
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now