BCX_LOADIMAGE function

Purpose: BCX_LOADIMAGE function returns a handle to a .bmp, .gif, .jpg, .wmf, .emf, or .ico image loaded from a file or loaded as a resource.


 Syntax:

 MyhBmp = BCX_LOADIMAGE(FileName$) ' load from a file
 
 MyhBmp = BCX_LOADIMAGE("", Resource%) ' load from EXE resources

 Parameters:

  • MyhBmp The HBITMAP handle, returned by the function.
  • FileName$ A string specifying the path to and name of a .bmp, .gif, .jpg, .wmf, .emf, or .ico image file.
  • Resource% An OPTIONAL integer value of an image resource. Note well, in the resource .rc file, the resource statement data type must be RCDATA. For example,
    
     500  RCDATA "bcx_bitmap.bmp"