Ver Mensaje Individual
  #4  
Antiguo 07-02-2006
arj2000 arj2000 is offline
Miembro
 
Registrado: abr 2004
Ubicación: Estocolmo
Posts: 25
Reputación: 0
arj2000 Va por buen camino
Lo conseguí

Código:
procedure TfrmReNamer.ConvertTo32BitImageList(const ImageList: TImageList);
const
  Mask: array[Boolean] of Longint = (0, ILC_MASK);
var
  TemporyImageList: TImageList;
begin
  // add to uses: commctrl, consts;   
  if Assigned(ImageList) then
  begin
    TemporyImageList := TImageList.Create(nil);
    try
      TemporyImageList.Assign(ImageList);
      with ImageList do
      begin
        ImageList.Handle := ImageList_Create(Width, Height, ILC_COLOR32 or Mask[Masked], 0, AllocBy);
        if not ImageList.HandleAllocated then
        begin
          raise EInvalidOperation.Create(SInvalidImageList);
        end;
      end;
      ImageList.AddImages(TemporyImageList);
    finally
      TemporyImageList.Free;
    end;
  end;
end;
__________________
Código:
 i := i + 1;	 // i++
Responder Con Cita