🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: create event for double click between column header of listview?

#17355
From: Remy Lebeau (TeamB)
Date: Fri, 04 Apr 2003 17:41
21 lines
1795 bytes
"pera" <picka2@gmx.net> wrote in message
news:3e8db610$1@newsgroups.borland.com...

> Is there a way of getting the message for the double click
> between the header columns of a listview.

TListView itself does not expose that event.  You will have to subclass the
ListView in order to intercept the WM_NOTIFY message manually, testing for
the HDN_DIVIDERDBLCLICK (and optionally HDN_BEGINTRACK) notification.

> The reason is that i need to call ListView->Refresh when
> the user is "resizing the column width" by double clicking
> between the column headers.

If a column resizes, the ListView should already be refreshing itself
automatically, but apparently it only does that if the ListView is
owner-drawn.


Gambit
Technical Details
Message-ID: <3e8dc3d3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.linkpendium.com!ken-transit.news.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3e8db610$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d949ecb86650b21
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-04 09:54:04 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e8db610$1@newsgroups.borland.com>
Subject: Re: create event for double click between column header of listview?
Date: Fri, 4 Apr 2003 09:41:49 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e8dc3d3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049478099 207.175.226.26 (4 Apr 2003 09:41:39 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.linkpendium.com!ken-transit.news.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail