BB FlashBack SDK: FBRecorder

RegionFromHWND

Description

Sets the properties that define the recording region (RegionHeight, RegionWidth, RegionX, RegionY) to the size and position of the specified window.
 

Syntax

[C#/C++]
public void RegionFromHWND (HWND hWnd)

[VB.NET]
Public Sub RegionFromHWND (ByVal hWnd As HWND)

Parameters

hWnd - handle of the window whose region we want to record.
 

Remarks

Only one monitor at a time can be recorded, so the window must be displayed entirely on one monitor. If the window is on a secondary monitor, the monitor must be selected by the SelectMonitor method.

To record a single window, the SDK can be used like this:

  1. Set FBRecorder::UseRegion to True.

  2. Set FBRecorder::RegionRecordingType = 1 , to record a region.

  3. Pass the handle of the window to be recorded to RegionFromHWND, which defines a region from the window size and position, setting the RegionHeight, RegionWidth, RegionX and RegionY properties accordingly.

See Recording Windows and Regions for more help on how to record windows and regions.

See Also

FBRecorder::UseRegion  FBRecorder::RegionRecordingType  FBRecorder::RegionHeight  FBRecorder::RegionWidth  FBRecorder::RegionX  FBRecorder::RegionY