![]() ![]() The width, in pixels, of the icon or cursor. This parameter can be one of the following values. If the fuLoad parameter includes the LR_LOADFROMFILE value, lpszName is the name of the file that contains the stand-alone resource (icon, cursor, or bitmap file). For example, to load the OCR_NORMAL cursor, pass MAKEINTRESOURCE(OCR_NORMAL) as the lpszName parameter, NULL as the hinst parameter, and LR_SHARED as one of the flags to the fuLoad parameter. To pass these constants to the LoadImage function, use the MAKEINTRESOURCE macro. The OEM image identifiers are defined in Winuser.h and have the following prefixes. If the hinst parameter is NULL and the fuLoad parameter omits the LR_LOADFROMFILE value, the lpszName specifies the OEM image to load. If the image resource is to be loaded by ordinal from the module, use the MAKEINTRESOURCE macro to convert the image ordinal into a form that can be passed to the LoadImage function.įor more information, see the Remarks section below. If the image resource is to be loaded by name from the module, the lpszName parameter is a pointer to a null-terminated string that contains the name of the image resource. If the hinst parameter is non- NULL and the fuLoad parameter omits LR_LOADFROMFILE, lpszName specifies the image resource in the hinst module. ![]() To load a stand-alone resource (icon, cursor, or bitmap file)-for example, c:\myimage.bmp-set this parameter to NULL. To load an OEM image, set this parameter to NULL. Note that as of 32-bit Windows, an instance handle ( HINSTANCE), such as the application instance handle exposed by system function call of WinMain, and a module handle ( HMODULE) are the same thing. For more information, see GetModuleHandle. Syntax HANDLE LoadImageA(Ī handle to the module of either a DLL or executable (.exe) that contains the image to be loaded. Loads an icon, cursor, animated cursor, or bitmap.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |