Thanks Bryan, just needed to know it was possible ;)

Cheers,

-John
http://www.iunknown.com


-----Original Message-----
From: alpine [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 20, 2002 7:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Owner draw / virtual controls in
System.Windows.Forms

>John,
>
>>In the good old days, I ran into similar limitations with the VCL
>>library in Delphi. I added support for virtual ListView / TreeView
>>controls by hacking my way into the library (the extensibility points
in
>>the framework didn't let me add this functionality cleanly via
>>derivation).
>>
>>Has anyone else gone down this path already?
>
>
>Yeah, I've done this in the past. Making a virtual ListView by simply
deriving from ListView and setting the  LVS_OWNERDATA style caused lots
of unexpected problems. The control is apparently not written to handle
that. So I ended up deriving directly from Control and implementing the
whole thing from scratch instead.


John, Mattias,

Hummmm....  I have an implementation derived directly from the listview
that is working just fine.  There are a few 'gotchas' but nothing that
can't be worked around without too much trouble.  The problems I've
encountered mostly have to do with anything that lets the listview think
it has items of it's own in it's items collection.  As long as you keep
the items collection out of play and deal with items on an API level,
all seems to be well.

Bryan

_________________________________________________________
New Vision Software         "When the going gets weird,"
Bryan Stafford                "the weird turn pro."
[EMAIL PROTECTED]                   Hunter S. Thompson -
www.mvps.org/vbvision       Fear and Loathing in LasVegas

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to