LOADRESOURCE@

Platform

Win32, x64

Purpose

To get the Microsoft HANDLE of a bitmap, icon or cursor.

Syntax

INTEGER(KIND=7) FUNCTION LOADRESOURCE@(NAME, ResType)
CHARACTER(LEN=*) name, resType

Notes

ResType is one of "BITMAP", "ICON" and "CURSOR".
NAME can correspond to one of a number of predefined Microsoft resources or can be a name provided in a user resource script or RESOURCES directive.
Predefined BITMAPs are "close", "uparrow", "dnarrow", "rgarrow", "lfarrow", "reduce", "zoom" and "restore".
Predefined ICONs are "app", "logo", "info", "error", "warn", "question" and "shield".
Predefined CURSORs are "arrow", "cross", "hand", "help", "ibeam", "no", "size" and "wait".
LOADRESOURCE@ can be used, for example, with %`bm, %`ic and with the Windows API function SetCursor.

 

 

Basket
Empty
 
Copyright © 1999-2023 Silverfrost Limited