Hi, does anyone know if there is a way to load an icon into a image list like
such, without
first converting it to bitmap format with DIBitmap:
## code
my $IL = new GUI::ImageList(16, 16, 24, 5, 10);
$IL->Add('foo.ico');
tried but image did not work.
thanks in advance.
Alex ;)
=
Hi, I try doing what you said:
my $dib = newFromBitmap Win32::GUI::DIBitmap ($hIcon) or die "no $!";
and it did not work (died)--do you know of any oher way?
thanks.
Alex ;)
--- Laurent ROCHER <[EMAIL PROTECTED]> wrote:
> Alex Lee wrote:
> > I tried DIBitmap but that did not work nither.
>
Alex Lee wrote:
> I tried DIBitmap but that did not work nither.
>
> ### code
> use Win32::GUI::DIBitmap;
> my $dib = newFromData Win32::GUI::DIBitmap ($hIcon) or die "no $!";
> ###
If you need use DIBitmap, try with newFromBitmap.
newFromBitmap work with handle like Win32::GUI (See Al
Alex Lee wrote:
> Hi all,
>
> Iam trying to extract an icon from a dll file like such:
>
> code
> my $A = 0;
> my $B = 'shimgvw.dll'; ## I want icon 1 in this dll file
>
> my $apiExecute = new Win32::API("Shell32", "ExtractIcon", ['P','P','N'],
'N');
> my $hIcon= $apiExecute->Call($A,$B,1
4 matches
Mail list logo