🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1545

Re: My Unicode combobox has problems with its XP/Vista visual appearance

#1545
From: Kris
Date: Tue, 31 Jul 2007 21:52
24 lines
1908 bytes
Kris wrote:
> Hi,
> 
> Using the small piece of code below I create a combobox capable of 
> displaying Unicode. Everything works just great except for a few details 
> of the visual appearance of the box. 

While looking around I found the SETWINDOWTHEME message which sets the 
visual style of a ComboBoxEx control. This could potentially solve the 
theming problems I am experiencing.
http://msdn2.microsoft.com/en-us/library/ms673108.aspx

The code then would look something like this:

WideString VisualStyleSet="to be done";
SendMessage(hwndCB,CBEM_SETWINDOWTHEME,0,(LPARAM)(LPWSTR)VisualStyleSet);

However:
- CBEM_SETWINDOWTHEME is unknown (BDS2006). Even after including CommCtrl.h
- I haven't got a clue what the LPARAM should be. According to MSDN this 
parameter is 'A pointer to a Unicode string that contains the control 
visual style to set.' but I'm unable to determine its value.

Kris
Technical Details
Message-ID: <46afaefb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46af7501@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,385ec0e9c415aa41
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 31 Jul 2007 23:52:01 +0200
From: Kris <ks@ks.com>
User-Agent: Thunderbird 2.0.0.5 (Windows/20070716)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: My Unicode combobox has problems with its XP/Vista visual appearance
References: <46af7501@newsgroups.borland.com>
In-Reply-To: <46af7501@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 83.134.79.243
Message-ID: <46afaefb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185918715 83.134.79.243 (31 Jul 2007 14:51:55 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail