Can anyone explain how to use the ApproximateViewRect method of a ListView object? The docs for Win32::GUI don't really explain anything.
A quick google says that the API call returns a "CSize" object.
This http://cpansearch.perl.org/src/ROBERTMAY/Win32-GUI-1.03/ListView.xs seems to indicate that the Win32::GUI method returns a DWORD.
Here's a bit of code that I tried which seems to return almost reasonable results:
my $z = $lv->ApproximateViewRect(0,0);
my $x = $z >> 16;
my $y = $z & 0xffff;
Ken Cornetet 812.482.8499
To err is human - to moo, bovine.