Mastodon
Programmierung

ListView OwnerDraw (D3)

Just for anyone else who might be attempting this:

1. Override the CreateParams() method in your TCustomListView descendent,
and set:
[code lang=”delphi”]Params.Style := Params.Style OR LVS_OWNERDRAWFIXED;
[/code]
2. Create a message handler for the CN_DRAWITEM message, NOT the WM_DRAWITEM
message that the Win32 help file (AND MSDN) tell you to respond to.
CN_DRAWITEM is in the same format as a WM_DRAWITEM message.

ARGH!!!!!! But it’s working. Thanks to all for the helpful suggestions.

Dave Lively

dave@intelemedia.com

Richardson, TX

[tags]Delphi, Components, ListView[/tags]

0 Kommentare zu “ListView OwnerDraw (D3)

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.