🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ListView Icons

#15659
From: Remy Lebeau (TeamB)
Date: Fri, 20 Jun 2003 00:18
36 lines
2317 bytes
"Bob" <bob@spam.com> wrote in message
news:3ef243c3@newsgroups.borland.com...
> I have your code working, but the MS Help file
> was missing a lot of info.

That is what MSDN is for.  It always contains the latest up-to-date
information.  Everything about ListView controls is available here:

    List-View Controls

http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listview/listview.asp

> I still get the first icon displaying for every object in the ListView
control.

That is probably a coding error on your part then.  Please post your actual
code.

> I have read on some groups that I have to use an owner
> drawn function on the ListView to show an icon other then
> the first on in the group for an item on the top level of the
> view.  Is this true?

ListView controls only natively support displaying icons for actual items in
the first column.  Everything else must be owner-drawn, yes.

> Again I am writing a win32 application with no VCL.

ListView controls have several notification messages related to
owner-drawning, specifically NM_CUSTOMDRAW (which is wrapped inside
WM_NOTIFY).



Gambit
Technical Details
Message-ID: <3ef251e6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!elnk-pas-nf2!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ef10bc3$1@newsgroups.borland.com> <3ef11f72$1@newsgroups.borland.com> <3ef125cf$1@newsgroups.borland.com> <3ef16044$1@newsgroups.borland.com> <3ef243c3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c0b5f7c930a24ebf
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-19 17:16:35 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef10bc3$1@newsgroups.borland.com> <3ef11f72$1@newsgroups.borland.com> <3ef125cf$1@newsgroups.borland.com> <3ef16044$1@newsgroups.borland.com> <3ef243c3@newsgroups.borland.com>
Subject: Re: ListView Icons
Date: Thu, 19 Jun 2003 17:18:30 -0700
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ef251e6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056068070 207.175.226.26 (19 Jun 2003 17:14:30 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!elnk-pas-nf2!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail