Steve Loughran wrote:
Robert May wrote:
foreach my $tempwin (@windows)
{
# $tempwin->InvalidateRect(1);
Win32::GUI::InvalidateRect($tmpwin, 1);
# $tmpwin is a scalar not an object
my $tempdib = newFromWindow Win32::GUI::DIBitmap ($tempwin,1);
$tempdib->SaveToFile("saved-image.bmp");
}
>
$tmpwin isn't a pakcakge or object reference.
So, on to the WM_PRINT event method. If I cant do:
$tempwin->GetDC();
because its a scalar, and
Win32::GUI:GetDC($tempwin);
doesnt seem to be able to find GetDC in the Win32::GUI package, how can
I find the DC for the scalar $tempwin entry? (I picked a bad week to
give up smoking AND caffeine)
Win32::GUI::DC::GetDC($tempwin);
Regards,
Rob.