Glenn W Munroe wrote:
>No problem adding it as a sample. When I posted this, it was a little tongue
>in cheek, as the "RtlMoveMemory" API call is a tremendous kludge, but I
>couldn't figure any way to do it with pure perl. Then again, if it *is* the
>only way, then I guess it also qualifies as a useful technique!
In my excitement at having a working CUSTOMDRAW example, I overlooked
this. I suspect that we shouldn't have samples that depends on
Win32::API. I'll write an example that use a control that doesn't
require writing back into the structure.
Like you, I can't think of a way to poke the values back in pure perl
(perhaps this is a good reason to implement the NM_CUSTOMDRAW handler XS
side?). If anyone knows of a way, then suggestions welcome.
[code example for customdraw listview snipped]