Help Center

AfxDibLoadImagefunction

Loads a DIB in memory and returns a pointer to it.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxDibLoadImage (BYVAL pwszFileName AS WSTRING PTR) AS BITMAPFILEHEADER PTR

Parameters

NameDescription
pwszFileNamePath of the bitmap file.

Return value

A pointer to the bitmap file header. You must release it with CoTaskMemFree when no longer needed.

Description

Loads a DIB in memory and returns a pointer to it.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:3763
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures