Appends the specified types of resources from PE files like EXE, DLL, OCX, ICL, BPL, etc from a module, such as an EXE file.
Parameter
Description
ModulePath
Specifies the path and filename of PE module
ResourceType
Resource types, e.g. [ietrBitmap, ietrCursor]
Note: ◼If ResourceTypes = [], then all image type resources are loaded: [ ietrIcon, ietrCursor, ietrBitmap, ietrRCData ] ◼Items are appended to the existing images. Call Clear if you wish to replace the existing content
// Load all "Bitmap" type respources from "explorer.exe" ImageEnMView1.Clear(); ImageEnMView1.IEMBitmap.LoadFromResource( 'explorer.exe', [ ietrBitmap ]); ImageEnMView1.Update();
// Load all resources in the current application ImageEnMView1.Clear(); ImageEnMView1.IEMBitmap.LoadFromResource( Application.ExeName, [] ); ImageEnMView1.Update();