See Also Examples Applies To
Creates a new GdPicture Image from a window handle.
Syntax
object.CreateImageFromHwnd (hwnd)
The CreateImageFromHwnd syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| hwnd | Optional. Long. Default value is 0. A Win32 Window Handle. This must be a top-level window or a child of a top level window. |
Returns
Long.
0: The image could not created. Use the GetStat() function to determine the
reason this function failed.
Non-zero: GdPicture Image handle. Handle of the created image.
Remarks
If success, set the created image as the native GdPicture image.
You can get the Windows Desktop hwnd with the GetDesktopHwnd function.
Category
Load, Import & Create an image