🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: No Listview custom msg

#9721
From: borland
Date: Sat, 19 Jun 2004 07:48
34 lines
2002 bytes
would i be right in saying i have to do the following:?

Subclass the listview's parent using it's WindowProc property:




"borland" <rogersmail@ntlworld.com> wrote in message
news:40d3e14f@newsgroups.borland.com...
> I am using the same function as another program i wrote which alternates
row
> colors in a listeview, in the other program it works fine..
> the one i am currently doing does not get past the below msg..
> if (lpnm->hdr.code == NM_CUSTOMDRAW)
>
> the only difference between the two programs is the listview that works
fine
> is placed upon a form directly, whereas this one that i am having trouble
> with is place upon a TabSheet which in turn is on a PageControl.
>
> void __fastcall TMainForm::WMNotify(TMessage &Msg)
> {
>     LPNM_LISTVIEW lpnm = (NM_LISTVIEW *)Msg.LParam;
>            // see if the message is a Custom Draw message
>           // ****************    This is as far as it gets
> *************************
>     if (lpnm->hdr.code == NM_CUSTOMDRAW)
>     {
>         // see if the message is from the ListView
>         if (lpnm->hdr.hwndFrom == MyListView->Handle)
>
> any idea's  thanks in advance
>
>
Technical Details
Message-ID: <40d3f026$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40d3e14f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,bcfae62bc6939384
X-Google-Attributes: gid10cc67,public
From: "borland" <rogersmail@ntlworld.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40d3e14f@newsgroups.borland.com>
Subject: Re: No Listview custom msg
Date: Sat, 19 Jun 2004 08:48:17 +0100
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300
NNTP-Posting-Host: 81.103.69.122
Message-ID: <40d3f026$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087631398 81.103.69.122 (19 Jun 2004 00:49:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail