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 |
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 |
Width of the image in pixels. | |
|
MyImage.Height |
Height of the image in pixels. | |
|
MyImage.Pixels |
Number of bits per pixel. |