L_BM_INFO

Send this message to get an L_BITMAPCLASS window's bitmap information.

Parameter

Meaning

wParam

Size of buffer to receive the bitmap information.

lParam

Points to a LEADBITMAPINFO structure. For a description, refer to the LEADBITMAPINFO Structure described below.

Returns

SUCCESS

Function was successful.

< 0

An error occurred. Refer to Return Codes.

LEADBITMAPINFO Structure

The L_BM_INFO message lets you get information about an image in the L_BITMAPCLASS registered class. Before sending the message, your program must declare a LEADBITMAPINFO structure. (The information in this structure is a simplified subset of the information in the BITMAPHANDLE structure.)

The following table describes the fields in the structure, using MyImage as the name of the LEADBITMAPINFO structure.

Sample Field Name

Data Type

Description

MyImage.uStructSize

L_UINT

Size of the LEADBITMAPINFO structure. This field allows for compatibility with future enhancements. It can be specified as follows:

MyImage.uStructSize = sizeof(MyImage); 

MyImage.Width

L_INT

Width of the image in pixels.

MyImage.Height

L_INT

Height of the image in pixels.

MyImage.Pixels

L_INT

Number of bits per pixel.