🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ownerdrawn combo box problem

#4739
From: Martin Golm
Date: Mon, 28 Nov 2005 15:34
15 lines
1426 bytes
JD schrieb:
> The problem is with how you create it.
> 
> >  cb = CreateWindow("COMBOBOX", "", style, 2, 2, 100, 25, Handle, 0, 0, 0);
> 
> You passed in a height of 25 which is only enough for the
> drop down list to be drawn with a height of one pixel. This
> is the cause because there is never enough room for an item
> to be drawn so the only value that you'll ever see is -1.

Yes, you're right. I obviously misinterpreted what the height parameter
means for a combo box.

Thanks,
Martin
Technical Details
Message-ID: <438B2398.3DF6ABE0@gmx.de>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4383006E.F33D5F94@gmx.de> <43858C68.6E541AE2@gmx.de> <4387aa28$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,963aa3ddf5359b86
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <438B2398.3DF6ABE0@gmx.de>
Date: Mon, 28 Nov 2005 16:34:48 +0100
From: Martin Golm <golm@gmx.de>
Organization: -
X-Mailer: Mozilla 4.78 [de] (Windows NT 5.0; U)
X-Accept-Language: de
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Ownerdrawn combo box problem
References: <4383006E.F33D5F94@gmx.de> <43858C68.6E541AE2@gmx.de> <4387aa28$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.179.199.185
X-Trace: newsgroups.borland.com 1133191930 84.179.199.185 (28 Nov 2005 07:32:10 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail