Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Sun, 13 Apr 2008 07:27:47 +1000,    group: microsoft.public.platformsdk.shell        back       


Bug in ComboBoxEx control in Vista with themes enabled   
Hi,

Ever since adapting our application to Vista we've had a problem with 
ComboBoxEx controls under Vista, and I believe we have now identified the 
cause.

The problem is basically that a drop-down ComboBoxEx control won't display 
the icon for the selected item properly. It will show the icons in the 
drop-down list, but won't correctly display them in the edit field. 
Initially no icon is shown at all - if you then drop-down the list one 
appears, but it is erased again if the window is resized (ie when the 
control is redrawn.)

The trigger seems to be sending a CB_SETDROPPEDWIDTH message to the control. 
The problem only occurs under Vista, and only when theming/visual styles are 
enabled.

I have made an example application and placed it online here : 
http://bytebounce.com/file/1082/72d88/comboboxextest.zip

Regards,
Jonathan Potter
GP Software
date: Sun, 13 Apr 2008 07:27:47 +1000   author:   Jon Potter am

RE: Bug in ComboBoxEx control in Vista with themes enabled   
Hello Jonathan,

Thank you very much for the example application and the very clear issue 
description. I hope it did not take too much time for you to build the 
example. :-)

I've tested your code and reproduced the issue that image list of combo box 
does not initially show with themes enabled in my Windows Vista system, but 
it shows well in Windows XP or 2003. Based on my tests, it is due to the 
order of messages that are sent to the combo box control. If 
CB_SETDROPPEDWIDTH is sent prior to CBEM_SETIMAGELIST, the combo box works 
as expected in both Vista and XP machines. However, if CB_SETDROPPEDWIDTH 
is sent afterwards, the Vista break issue appears. Therefore, a quick 
workaround is to move the line
SendMessage(hWndCombo,CB_SETDROPPEDWIDTH,400,0);
in front of 
SendMessage(hWndCombo, CBEM_SETIMAGELIST, 0, (LPARAM)hIL);

I am researching to see why the break issue appears in Vista that, if 
CB_SETDROPPEDWIDTH is sent after CBEM_SETIMAGELIST, the image list does not 
initially show up. I will get back to you as soon as possible. Thank you 
again for reporting it to us.

By the way, I hope to let you know that, looking at the nature of the 
issue, it is a Windows form UI issue, and it's better if we post it in 
microsoft.public.win32.programmer.ui newsgroup next time, where UI experts 
and community members can benefit from your findings, and share their 
opinions with you. Thanks for your understanding.

Regards,
Jialiang Ge (jialge@online.microsoft.com, remove ¡®online.¡¯)
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to 
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Mon, 14 Apr 2008 05:44:52 GMT   author:   (Jialiang Ge [MSFT])

Re: Bug in ComboBoxEx control in Vista with themes enabled   
Hi,

"Jialiang Ge [MSFT]"  wrote in message 
news:cX6OzKfnIHA.9016@TK2MSFTNGHUB02.phx.gbl...
> Thank you very much for the example application and the very clear issue
> description. I hope it did not take too much time for you to build the
> example. :-)

No, not too long :)

> is sent afterwards, the Vista break issue appears. Therefore, a quick
> workaround is to move the line
> SendMessage(hWndCombo,CB_SETDROPPEDWIDTH,400,0);
> in front of
> SendMessage(hWndCombo, CBEM_SETIMAGELIST, 0, (LPARAM)hIL);

Yes I discovered this workaround myself soon after posting; however for 
other reasons this is less than ideal (the other reasons have to do with 
another bug in the underlying ComboBox control - which I will report when I 
find time to write it up :)

> By the way, I hope to let you know that, looking at the nature of the
> issue, it is a Windows form UI issue, and it's better if we post it in
> microsoft.public.win32.programmer.ui newsgroup next time, where UI experts
> and community members can benefit from your findings, and share their
> opinions with you. Thanks for your understanding.

Ok. It is sometimes hard, with the hundreds of different newsgroups you 
have, to know which category a posting should go into. In this case my 
reasoning was that the ComboBoxEx control is one of the shell common 
controls, and so the .shell newsgroup seemed appropriate. I will know better 
next time!

Regards,
Jonathan Potter
date: Wed, 16 Apr 2008 08:51:14 +1000   author:   Jon Potter am

Re: Bug in ComboBoxEx control in Vista with themes enabled   
Hello Jon, I agree that may well be a break issue of ComboBoxEx in Windows 
Vista. I am very sorry for the impact of this possible issue of our product 
on yours. Since my last reply to you, I have been striking the doors of the 
persons in charge of Windows controls and some developers for Windows 
Vista, however, they seem busy with other issues and have not given me any 
confirmation by far. I will continue striking them and update you. 

I'd also suggest you submit this issue to Microsoft product feedback site 
which is monitored directly by developers or product managers: 
http://connect.microsoft.com/. And if you feel the issue is very critical 
to your business, you may consider contacting Microsoft Customer Support 
Service (CSS) where you will get a quick, effective, and efficient 
assistance from a Microsoft Support Professional. Please note that if the 
support professional confirm that this is indeed anissue of our product, 
the CSS support incident will be free of charge. 

Last but not least, Jon, I notice that you once reported several other 
Vista break issues to us, e.g. ExtractIconEx. It's really very nice and 
warn-hearted of you to post the priceless feedbacks to us. We are touched. 
Thank you again, and once again!

Regards, 
Jialiang Ge  (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
date: Thu, 17 Apr 2008 04:10:40 GMT   author:   (Jialiang Ge [MSFT])

Re: Bug in ComboBoxEx control in Vista with themes enabled   
Hello Jon,

Here is an update. All the engineer and program managers who are 
responsible for the ComboBoxEx control start to look into the issue. I 
believe we can figure it out soon.

Regards, 
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
date: Fri, 18 Apr 2008 02:23:15 GMT   author:   (Jialiang Ge [MSFT])

Re: Bug in ComboBoxEx control in Vista with themes enabled   
Hello Jonathan,

Sorry to have kept you waiting. The product team has confirmed the issue of 
ComboBoxEx in Vista. If you feel it very critical to fix the issue, I 
suggest you contact Microsoft CSS to ask for a hotfix, by contacting us at 
1-(800)936-5800 or by choosing one of the options listed at 
http://support.microsoft.com/common/international.aspx?rdpath=fh;en-us;cntac
tms.

The product team also mentioned the workaround of moving the line
SendMessage(hWndCombo,CB_SETDROPPEDWIDTH,400,0);
in front of 
SendMessage(hWndCombo, CBEM_SETIMAGELIST, 0, (LPARAM)hIL);

If you find any followup problems, please let me know.

Again, thank you very much for the report of the Vista break issue. We 
appreciate it a lot!

Regards, 
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
date: Thu, 24 Apr 2008 10:02:23 GMT   author:   (Jialiang Ge [MSFT])

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us