473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CToolBar ... How to ?

Hi all, In Using the VC.NET 2003 and I'm trying to create a new program SDI
with a ToolBar object,

My problem is when the toolbar is created the buttons are disabled and I
want to know how can I enable the buttons

Very Thanks,

Danilo Almeida.
Nov 16 '05 #1
1 1347
DaniloAlmeida wrote:
Hi all, In Using the VC.NET 2003 and I'm trying to create a new program SDI
with a ToolBar object,

My problem is when the toolbar is created the buttons are disabled and I
want to know how can I enable the buttons


If a given button has a command handler associated with it, it will be
enabled. If it has an update handler associated with it, that handler
determines the button's state. For more, start here:

http://msdn.microsoft.com/library/de...ing_Topics.asp

In particular, see:

http://msdn.microsoft.com/library/de...ce_objects.asp

--
Doug Harrison
Microsoft MVP - Visual C++
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: WD | last post by:
When I use the BTNS_WHOLEDROPDOWN style to create a toolbar button that contains the arrow within the button space, the toolbar will truncate the last button in the toolbar by the width of the...
4
by: troloo | last post by:
Hello, I hope you can help me :)) The story goes as follows: I have a class with different methods and member variables. I store pointers to objects of this class inside a vector. Now, I would like...
1
by: Blind | last post by:
I have MFC application with CToolBar. In fact, I have CReBar and two CToolBars in it (in single line). When user changes the size of main window and the width, right toolbar automatically wraps to...
0
by: RedHedToo | last post by:
I've been tasked to create a tool for a 3rd party application. I must create a toolbar that is to be added to that application and when a button is pressed, a popup window with functionality is to...
1
by: Lea Hayes | last post by:
Hi, I have noticed problems with the CToolBar class when using a manifest file in VC++ 2003. To test my theory I created an empty MFC MDI project with the manifest file so I get the WinXP style...
4
by: Neo | last post by:
I am developing a GUI for a destop application in Visual C++ .Net 2005, I am trying to create toolbar exactlly same as windows explorer which will have default windows icons, which are in windows...
1
by: rag84dec | last post by:
Hi, I am trying to use the toolbar resource...IDR_TOOLBAR1.... Here I have declared CToolBar cToolBar; in my Dialog class "class CExoDialog : public CDialog" In OnInitDialog Function....I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.