S2263_setstreamwindow, S2263_setstreamwindowposition, S2263_repaintwindow – Sensoray 2263 User Manual

Page 11

Advertising
background image

S2263_SetStreamWindow

MID2263_API int __stdcall S2263_SetStreamWindow (

HWND

hwnd,

int

devid);

Optional function to preview in a predefined video window. If this function is
not called or hwnd is NULL, the default pop-up window will display the video

stream. If hwnd is not NULL, the window class should call
S2263_RepaintWindow when a WM_PAINT message is received. An example

MFC window class is shown in the Appendix.
hwnd

Window handle to render to. If NULL, default pop-up window will be used.

devid

device id in the system (use 0 with a single board installed).

S2263_SetStreamWindowPosition

MID2263_API int __stdcall S2263_SetStreamWindowPosition (

RECT

rcDst,

int

devid);

Used to set the position of the stream window.
rcDst

Coordinates of the window position.

devid

device id in the system (use 0 with a single board installed).

S2263_RepaintWindow

MID2263_API int __stdcall S2263_RepaintWindow (

HDC

hdc,

int

devid);

Used only if S2263_SetStreamWindow called with non-NULL hwnd. Call this

function whenever the window in question must be repainted. For example,
whenever it receives a WM_PAINT message.
hdc

Device context of the window in question. If NULL, default device context
for the window handle will be used.

devid

device id in the system (use 0 with a single board installed).

11

Advertising