Partager via


SHLoadDIBitmap

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Standard Shell Functions