toolbars and comctl32.dll
Mike Foster -- foster@mprgate.mpr.ca
Tuesday, August 27, 1996
Environment: VC++ 4.1, Win 95
I have been experiencing strange problems with the toolbar in my
application on Win95 machines that have the Microsoft Internet Explorer
3.0 (4.70.1158) installed on them. The toolbar does not paint properly,
and buttons do not show their enabled/disabled state properly. I did some
tests and found that the Explorer installation replaced the comctl32.dll
with a newer version (4.7). Experimenting with my code I found that
toolbars worked fine until I called:
GetToolBar->GetToolBarCtrl()->AddStrings()
and set some of the TBBUTTON structures up to use the strings. It seems
that toolbars with text do not work correctly with the new common control
DLL. Has anyone had similar problems and figured out a workaround?
Thanks.
Mike Foster
foster@mpr.ca
Xavier PILLONS -- 100335.221@compuserve.com
Friday, August 30, 1996
I've got the same trouble, since I found a new release of comctl32.dll. I think
it was provided with the released version of IE 3.0, the comctl32.dll version
4.7.xxxx has been provided with beta version of IE3.0.
Hope this help.
Xavier Pillons
SETE Inc.
----------
Mike foster wrote :
>
>Environment: VC++ 4.1, Win 95
>
>I have been experiencing strange problems with the toolbar in my
>application on Win95 machines that have the Microsoft Internet Explorer
>3.0 (4.70.1158) installed on them. The toolbar does not paint properly,
>and buttons do not show their enabled/disabled state properly. I did some
>tests and found that the Explorer installation replaced the comctl32.dll
>with a newer version (4.7). Experimenting with my code I found that
>toolbars worked fine until I called:
>
>GetToolBar->GetToolBarCtrl()->AddStrings()
>
>and set some of the TBBUTTON structures up to use the strings. It seems
>that toolbars with text do not work correctly with the new common control
>DLL. Has anyone had similar problems and figured out a workaround?
>Thanks.
>
>Mike Foster
>foster@mpr.ca
Douglas Earl -- dae@Rational.COM
Tuesday, September 03, 1996
[Mini-digest: 2 responses]
A co-worker of mine has spent some time looking into this and has found =
a possible workaround to the drawing problems when strings are enabled. =
Using spy on IE 3.0, he noticed that it was using a lot of WM_USER =
messages on toolbar actions. He experimented with these and found that =
using WM_USER+60 to toggle the display of strings after calling =
AddStrings solved the drawing problem. WM_USER+59 was also required in =
order to set the bitmap sizes. (I'm only paraphrasing what he has told =
me, so I'm sure I'm simplifying things). To the best of my knowledge =
these are undocumented, so it's not a great solution, plus, it might not =
even address your problems, but I thought it couldn't hurt to let you =
know about it. Also, I was curious if anyone else had info on these =
messages.
----------
From: Mike Foster
Sent: Tuesday, August 27, 1996 11:45 PM
To: mfc-l@netcom.com
Subject: toolbars and comctl32.dll
Environment: VC++ 4.1, Win 95
I have been experiencing strange problems with the toolbar in my =20
application on Win95 machines that have the Microsoft Internet Explorer =
=20
3.0 (4.70.1158) installed on them. The toolbar does not paint properly, =
=20
and buttons do not show their enabled/disabled state properly. I did =
some =20
tests and found that the Explorer installation replaced the comctl32.dll =
=20
with a newer version (4.7). Experimenting with my code I found that =20
toolbars worked fine until I called:
GetToolBar->GetToolBarCtrl()->AddStrings()
and set some of the TBBUTTON structures up to use the strings. It seems =
=20
that toolbars with text do not work correctly with the new common =
control =20
DLL. Has anyone had similar problems and figured out a workaround? =20
Thanks.
Mike Foster=20
foster@mpr.ca
-----From: pjn@indigo.ie (pjn)
This is a known problemn with betas of IE3. Either you must reinstall
an earlier comctl32 on your machines and do without IE3 or put up with
the problem until the released version of IE3 gets rid of the problem.
'''
@ @
+========================ooO-(_)-Ooo=================================+
| PJ Naughter |
| |
| Software Developer Email: pjn@indigo.ie |
| Softech Telecom Tel: +353-1-2958384 |
| Fax: +353-1-2956290 |
| Author of DTime - A Collection URL: http://indigo.ie/~pjn |
| of Date & Time classes for MFC |
| |
| Addr: 7 Woodford, Brewery Road, Blackrock, |
| Co. Dublin, Republic of Ireland |
+====================================================================+
| Вернуться в корень Архива
|