Sorry, I didn't read the entire note from Aldo where he says a handle is not
an object, just a number. My suggestion should not work.

   $hWnd->Resize($iWidth,$iHeight);

Eric

-----Original Message-----
From: Eric C. Hansen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 01, 1999 10:16 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [perl-win32-gui] work with existing windows


Have you tried:

   $hWnd->Resize($iWidth,$iHeight);

Just a thought.

Regards,
Eric Hansen


> basically, whenever you invoke a method on an object, the object
> itself is passed as the first parameter; the following two lines
> are completely equivalent:
>
>     $Window->Resize( 100, 100 );
>     Win32::GUI::Resize( $Window, 100, 100 );
>
> but the first one is obviously more practical ;-)
> when you work with existing windows, they're not object but mere
> numerical values (handles), so the "->" it's a no-no.
> always use the second form with them.

Thx for clarifying this!

>
> cheers,
> Aldo

Bye.
Michael.


Reply via email to