DIBMP:LoadDIBFromResource() Method

<< Click to Display Table of Contents >>

Navigation:  DiBMP Class >

DIBMP:LoadDIBFromResource() Method

Previous pageReturn to chapter overviewNext page

Purpose

To load a bitmap from a resource.

Syntax

<oDIBMP>:LoadDIBFromResource(cName, hInst) lSuccess                                (LOGIC)

Arguments

cName

The string name of the resource.

hInst

The instance of the application or DLL containing the resource.

Description

This method loads a bitmap from a compiled resource.  It allows you to load bitmaps stored in Windows executables and dynamic link libraries.

Example

// Load a bitmap named "MYDIB" from the application's exe file.

oDIBMP:LoadDIBFromResource("MYDIB", _getinst())