SftButton/OCX 2.5

SftPictureObject.IconHandle Property

Softel vdm, Inc.

Defines the image object using an icon handle.

Syntax       

Get

VB.NET

hIcon = object.IconHandle  As Integer

VB

hIcon = object.IconHandle  As OLE_HANDLE

C#.NET

int hIcon = object.IconHandle;

VC++

OLE_HANDLE hIcon = object->IconHandle;
OLE_HANDLE hIcon = object->GetIconHandle();

C

HRESULT object->get_IconHandle(OLE_HANDLE* hIcon);

Delphi

hIcon := object.IconHandle  : Cardinal;

Put

VB.NET

object.IconHandle = hIcon  As Integer

VB

object.IconHandle = hIcon  As OLE_HANDLE

C#.NET

int object.IconHandle = hIcon;

VC++

OLE_HANDLE object->IconHandle = hIcon;
void object->PutIconHandle(OLE_HANDLE hIcon);

C

HRESULT object->put_IconHandle(OLE_HANDLE hIcon);

Delphi

object.IconHandle := hIcon  : Cardinal;

object

A SftPictureObject object.

hIcon

Defines the image object using an icon handle. The icon handle can be NULL, in which case the SftPictureObject is cleared.

Comments

The IconHandle property defines the image object using an icon handle.

The SftPictureObject.Type property is set to sftTypeIcon. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the icon size.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com