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 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;

                $lv->Resize($x, $y);



                $mw->Resize($lv->Width(), $lv->Height());


Ken Cornetet 812.482.8499

To err is human - to moo, bovine.