L_BM_LOAD
Send this message to load a bitmap file to an L_BITMAPCLASS window.
Parameter |
Meaning |
wParam |
Specifies whether the window should be redrawn to reflect the image changes. Use 1 to redraw the window, or 0 not to redraw it. |
lParam |
Points to a LEADBITMAPLOAD structure. For a description, refer to the LEADBITMAPLOAD Structure described below. |
Returns
SUCCESS |
Function was successful. |
< 0 |
An error occurred. Refer to Return Codes. |
LEADBITMAPLOAD Structure
The L_BM_LOAD message lets you load an image file into an L_BITMAPCLASS registered class window. Before sending the message, your program must declare a LEADBITMAPLOAD structure.
The following table describes the fields in the structure, using LoadStruct as the name of the LEADBITMAPLOAD structure.
Sample Field Name |
Data Type |
Description |
LoadStruct.uStructSize |
Size of the LEADBITMAPLOAD structure. This field allows for compatibility with future enhancements. It can be specified as follows: LoadStruct.uStructSize = sizeof(LoadStruct); | |
LoadStruct.Name |
An 80-character array containing the full path name of the file to load. | |
LoadStruct.pOptions |
Pointer to optional extra load options. Use NULL for defaults. |