Event after resizing TListView column

I am trying to raise an event after a column is resized in TListView set to ViewStyle = vsReport.

In particular, I have two ListViews that I want the columns to be the same width. Only one listView has column headers, so you need to bind an event for this.

A statement on the available procedures for TListViews seems to have no corresponding parameters ...

Any help?

+4
source share
1 answer

Subclassing ListView and intercepting WM_NOTIFY messages that are sent from the ListView control to ListView, we are looking for HDN_ENDTRACK and HDN_ITEMCHANGED .

Not to be confused with CN_NOTIFY messages, which are WM_NOTIFY messages that ListView sends to itself.

+7
source

Source: https://habr.com/ru/post/1394428/


All Articles