SetBackPictureFromHandle method |
|
Remarks
Sets a background picture from an existing bitmap handle.
Syntax
[Visual Basic] control.SetBackPictureFromHandle ( hBitmap as OLE_HANDLE, nMode as enumBitmapModes ) as enumWanErrorCodes |
[C++] short control.SetBackPictureFromHandle ( OLE_HANDLE hBitmap, short nMode ); |
Parameter |
Description |
|||||||||||||||
|
|
|||||||||||||||
hBitmap |
Handle (HBITMAP) of the bitmap to apply. If this parameter is set to 0 an eventual picture set through a previous call to this method will be reset. |
|||||||||||||||
nMode |
Bitmap mode. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumWanErrorCodes.ERR_WAN_NOERROR (0) |
The method call was successful |