ImageMan ActiveX Control Version 8
Capture Method
See Also  Example  Send comments on this topic.
hWnd
Specifies the Handle to the Window to be captured otherwise NULL to capture the Desktop.
Options

Setting

Description

0

capture the entire window

1

capture only the client area of the window

Glossary Item Box

Description

Captures to the control the requested window handle for the purpose of screen capture.

Syntax

Visual Basic
Public Sub Capture( _
   ByVal hWnd As Integer, _
   ByVal Options As Integer _
) 

Parameters

hWnd
Specifies the Handle to the Window to be captured otherwise NULL to capture the Desktop.
Options

Setting

Description

0

capture the entire window

1

capture only the client area of the window

Remarks

The first parameter, HWnd, should either be the Handle of the window to capture, or NULL to capture the desktop.

The Desktop window is all client area so the 2nd parameter can be ignored. This parameter is only effective with a standard window that has a menu area for instance, in that case capturing the client area will not include the menus, etc.

Example

Capture (Visual Basic)Copy Code
' Capture the Desktop
ImageControl1.Capture NULL, 0

' Capture only the client area of the Form1 Window
ImageControl1.Capture Form1.hWnd, 1

See Also

© 2014 Data Techniques Inc. All Rights Reserved.