Solved

Button in CDialogBar

Posted on 1998-08-06
3
350 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best tools for Backup and restore of Wordpress site 6 58
fizzArray  challenge 1 107
matchUp  challenge 6 76
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 114
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…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

713 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