Skip to content

LoadBitmapFromResource Method

Description

Loads an Alpha bitmap from a resource file.

Syntax

Public Sub LoadBitmapFromResource( _
    ByVal Module As Integer, _
    ByVal Resource As Long, _
    ByVal Commands As Variant, _
    ByVal imageState As XTPImageState _
)

Parameters

  • Module: Handle to the instance of the module whose executable file contains the bitmap to be loaded.
  • Resource: Long pointer to a null-terminated string that contains the name of the bitmap resource to be loaded.
  • Commands: Determines if the bitmap contains an alpha layer.
  • imageState: Specifies the state of the image.

Image States

Value Description
xtpImageNormal Specifies a normal icon. This is the image displayed when the item is displayed normally.
xtpImageDisabled Specifies a disabled icon. This is the image displayed when the item is disabled.
xtpImageHot Specifies a hot icon. This is the image displayed when the mouse pointer is positioned over the item.
xtpImageChecked Specifies a "checked" or selected icon. This is the image displayed when the item is in a selected state.
xtpImagePressed Specifies a "pressed" or pushed icon. This is the image displayed when the item is currently pressed by the mouse cursor.

Return Type

Alpha bitmap handler.

See Also

ImageManagerIcons Collection


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.