Solved

Button in CDialogBar

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 170
Detect CR LF to each line 12 152
How to convert MFC::CString to UTF8 wchar_t* 10 141
firstChar challenge 13 107
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 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

19 Experts available now in Live!

Get 1:1 Help Now