Share via


SHLoadDIBitmap (Compact 2013)

3/28/2014

This function loads a bitmap from the specified file.

Syntax

HBITMAP SHLoadDIBitmap(
  LPCTSTR szFileName 
);

Parameters

  • szFileName
    [in] Null-terminated string that contains the fully qualified path and file name that the bitmap will be loaded from.

Return Value

If the function succeeds, the return value is the handle to the bitmap loaded from the file; otherwise, the return value is NULL.

Remarks

The application should call the DeleteObject function when the bitmap is no longer needed.

Requirements

Header

shellapi.h

Library

coredll.lib

See Also

Reference

Shell Functions