Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Button in CDialogBar

Posted on 1998-08-06
3
Medium Priority
?
371 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

618 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