CreateImageFromHICON Method

See Also     Examples     Applies To

Creates a new GdPicture Image from an icon handle.

Syntax

object.CreateImageFromHICON (hicon)

The CreateImageFromHICON syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
hicon Required. Long. Handle to a Microsoft® Windows® Graphics Device Interface (GDI) icon.

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.

Category

Load, Import & Create an image





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.