473,408 Members | 1,907 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,408 software developers and data experts.

CToolbarCtrl problem

I have created a class derived from CToolbarCtrl.
in this class i have added some push buttons and some dropdown
buttons.In which one of them is setting button.when i click this button
a property sheet is displayed in which i can select and deselect a lot
of options about to display a specif button on the toolbar or not.
Suppose when the user selects the checkbox of "Mails" and then apply
button pressed ,i want to appear that button on the toolbar and if S/He
Uncheck the "Mails" checkbox i want to disappear the toolbar Mails
button.

to solve this problem i have send a user defined message from the
propertyPage class to the toolbar so that in this message handler i
could place my code to Appear/Disappear my "mails" button.

I m trying to use the function
HideButton() of CToolbarCtrl class in my user defined message handler
but this is not working.i want that when user press the apply button
the button should be reflect the changes.
another way i have tried is that the buttons which i have added into
the toolbar ,itried to set their "fsState" to TBSTATE_ENABLE or
TBSTATE_HIDDEN, these techniques work but when i close the IE instance
and start it again.i just want to reflect the changes the user have
made in the Option page of propertysheet class.
plz help me where i m making a mistake.
Another thing is that i have make a funtion "Create" in the
CToolbarCtrl derived class in which i m adding the buttons in the
toolbar.and this is used as a Dll.

plz tell me .
Thanks in advance.

CrimeMaster

Jun 23 '06 #1
2 1383
>I have created a class derived from CToolbarCtrl.
in this class i have added some push buttons and some dropdown
buttons.In which one of them is setting button.when i click this button
a property sheet is displayed in which i can select and deselect a lot
of options about to display a specif button on the toolbar or not.
Suppose when the user selects the checkbox of "Mails" and then apply
button pressed ,i want to appear that button on the toolbar and if S/He
Uncheck the "Mails" checkbox i want to disappear the toolbar Mails
button.

to solve this problem i have send a user defined message from the
propertyPage class to the toolbar so that in this message handler i
could place my code to Appear/Disappear my "mails" button.

I m trying to use the function
HideButton() of CToolbarCtrl class in my user defined message handler
but this is not working.i want that when user press the apply button
the button should be reflect the changes.
another way i have tried is that the buttons which i have added into
the toolbar ,itried to set their "fsState" to TBSTATE_ENABLE or
TBSTATE_HIDDEN, these techniques work but when i close the IE instance
and start it again.i just want to reflect the changes the user have
made in the Option page of propertysheet class.
plz help me where i m making a mistake.
Another thing is that i have make a funtion "Create" in the
CToolbarCtrl derived class in which i m adding the buttons in the
toolbar.and this is used as a Dll.


Hi,

Your question is already answered in at least 2 forums.
Please do not cross post.

If you really feel that a question belongs in multiple groups, do a multi
post so that the answers show up
on every forum that was posted to.

Even then, only do so if it is necessary.
If your question is on topic, the chances are very good that it will get
answered within a short timespan in the most appropriate group.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jun 23 '06 #2
> Your question is already answered in at least 2 forums.
Please do not cross post.


Oops. My bad.
it is only replied to in vc.language at this point (unless I am missing a
newsgroup. I don't read all vc related newsgroups).
the reply was posted by you, with an exact copy of your question.

My fingers were faster than my eyes. sorry.

But still, MFC questions are best sent to the MFC forum.
That is where the MFC gurus (which I am definitly not) are most likely to
hang out.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jun 23 '06 #3

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

Similar topics

117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.