SetBackPictureFromHandle method |
|
Remarks
Sets a background picture from an existing bitmap handle.
Syntax
[Visual Basic] Public Function SetBackPictureFromHandle ( hBitmap as IntPtr, nMode as enumBitmapModes ) as enumWanErrorCodes |
[C#] public enumWanErrorCodes SetBackPictureFromHandle ( IntPtr hBitmap, enumBitmapModes nMode ); |
[C++] public: enumWanErrorCodes SetBackPictureFromHandle ( IntPtr hBitmap, enumBitmapModes 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 (see the LastError property for further error details) |
enumWanErrorCodes.ERR_WAN_NOERROR (0) |
The method call was successful. |