Vcl.ImgList.TCustomImageList.ResInstLoad

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ResInstLoad(Instance: THandle; ResType: TResType;  const Name: string; MaskColor: TColor): Boolean;

C++

bool __fastcall ResInstLoad(NativeUInt Instance, TResType ResType, const System::UnicodeString Name, System::Uitypes::TColor MaskColor);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList TCustomImageList

Description

Loads a resource into the image list.

Use the ResoInstLoad method to load a resource of type TResType into the image list. Use Instance to specify the instance handle of the resource module, and Name to identify the resource within that module. MaskColor is used to create the mask for the resulting image. ResInstLoad should be used rather than ResourceLoad to load a resource from within a package.

ResInstLoad returns true if it is successful, false otherwise.

See Also