travelergugl.blogg.se

Loading icon
Loading icon









Lt Gray, RGB(223,223,223) with COLOR_3DLIGHTĭo not use this option if you are loading a bitmap with a color depth greater than 8bpp.Searches the color table for the image and replaces the following shades of gray with the corresponding 3-D color. Loads the stand-alone image from the file specified by lpszName (icon, cursor, or bitmap file). If the resource contains multiple images, the function uses the size of the first image. If this flag is not specified and cxDesired and cyDesired are set to zero, the function uses the actual resource size. Uses the width or height specified by the system metric values for cursors or icons, if the cxDesired or cyDesired values are set to zero. This flag is useful for loading a bitmap without mapping it to the colors of the display device. When the uType parameter specifies IMAGE_BITMAP, causes the function to return a DIB section bitmap rather than a compatible bitmap. This parameter can be one or more of the following values. If this parameter is zero and LR_DEFAULTSIZE is not used, the function uses the actual resource height. If this parameter is zero and the fuLoad parameter is LR_DEFAULTSIZE, the function uses the SM_CYICON or SM_CYCURSOR system metric value to set the height. The height, in pixels, of the icon or cursor. If this parameter is zero and LR_DEFAULTSIZE is not used, the function uses the actual resource width. If this parameter is zero and the fuLoad parameter is LR_DEFAULTSIZE, the function uses the SM_CXICON or SM_CXCURSOR system metric value to set the width. 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 LoadImageW(Ī 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.











Loading icon