Copyright © 1998-2015 MultiMedia Soft

GetControlBitmap method

Previous pageReturn to chapter overviewNext page

Remarks

 

Gets the image of the control in form of a HBITMAP.

 

Syntax

Visual Basic

control.GetControlBitmap (nImage as enumExportImages) as OLE_HANDLE

 

Visual C++

OLE_HANDLE control.GetControlBitmap (short nImage);

 

Parameter

Description

 

 

nImage

Numerical value that identifies the image that must be exported. Supported values are the following:

Mnemonic constant

Value

Meaning

EXPORT_IMAGE_NORMAL

0

The image of the button in normal state.

EXPORT_IMAGE_MOUSEOVER

1

The image of the button when the mouse is over its surface.

EXPORT_IMAGE_PRESSED

2

The image of the button in pressed state.

EXPORT_IMAGE_FOCUS

3

The image of the button when it has the input focus.

EXPORT_IMAGE_DISABLED

4

The image of the button in disabled state.

 

Return value

 

Value

Meaning

 

 

0

The operation failed

value > 0

The HBITMAP of the control's image