Re: Drop-down list with CBS_DROPDOWNLIST | CBS_OWNERDRAWVARIABLE in Vista
- From: jetan@xxxxxxxxxxxxxxxxxxxx ("Jeffrey Tan[MSFT]")
- Date: Tue, 27 Feb 2007 06:05:45 GMT
Hi Arno,
I finally got feedback from the current Combobox developer, below is his
comment:
"For compatibility comboboxes with ownerdraw style fallback to old painting
code and they look similarly to XP. In such case there is no "button" look
for CBS_DROPDOWNLIST.
I would leave ownerdraw style to paint content of drop-down listbox in
WM_DRAWITEM handler as it is done currently.
To have this new "button" look for CBS_DROPDOWNLIST your user has to
subclass combobox (http://msdn2.microsoft.com/en-us/library/ms997565.aspx)
and handle WM_PAINT message. Then he has to paint combobox himself using
DrawThemeBackground and BeginBufferedAnimation in WM_PAINT handler. This is
not easy and there is no guarantee that it will work in next version of
Windows but unfortunately there is no better way now :("
So it seems that there is a dark area without perfect solution. Microsoft
PSS may have some better solution.
Thanks for your understanding.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
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.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Bug in Richedit.h in Windows SDK v6.0
- Next by Date: Re: Drop-down list with CBS_DROPDOWNLIST | CBS_OWNERDRAWVARIABLE in Vista
- Previous by thread: Re: Drop-down list with CBS_DROPDOWNLIST | CBS_OWNERDRAWVARIABLE in Vista
- Next by thread: Re: Drop-down list with CBS_DROPDOWNLIST | CBS_OWNERDRAWVARIABLE in Vista
- Index(es):