RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.ResInstLoad Method

Loads a resource into the image list.

Pascal
function ResInstLoad(Instance: THandle; ResType: TResType; const Name: string; MaskColor: TColor): Boolean;
C++
__fastcall Boolean ResInstLoad(THandle Instance, TResType ResType, const AnsiString Name, TColor MaskColor);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!