CToolbarCtrl problem

  • Thread starter Thread starter CrimeMaster
  • Start date Start date
C

CrimeMaster

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
 
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
(e-mail address removed)
Remove only "_nos_pam"
 
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
(e-mail address removed)
Remove only "_nos_pam"
 
Back
Top