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;
                $lv->Resize($x, $y);


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

Ken Cornetet 812.482.8499
To err is human - to moo, bovine.

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to