🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

No Listview custom msg

#9719
From: borland
Date: Sat, 19 Jun 2004 06:44
21 lines
1738 bytes
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: <40d3e14f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,bcfae62bc6939384,start
X-Google-Attributes: gid10cc67,public
From: "borland" <rogersmail@ntlworld.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: No Listview custom msg
Date: Sat, 19 Jun 2004 07:44:57 +0100
Lines: 23
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: <40d3e14f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087627599 81.103.69.122 (18 Jun 2004 23:46:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail