MImgLoadFromScreen

Functions ››
Parent Previous Next

hImage = MImgLoadFromScreen( hWnd, nFlags )

Loads an image from the current contents of the screen and/or a window.

Parameters
hWnd
Window Handle: The handle of the window or hWndNULL to load the whole screen

nFlags
Number: Any combination of the following flags:

MIMG_SCREEN_WNDCLAREAONLY

Only the client area of a window is used.
This flag has no effect if the whole screen is loaded.

MIMG_SCREEN_WNDFOREGROUND

The current foreground window is used and the window handle specified in hWnd is ignored.

Return
Number: Handle of the image or 0 if an error occurs

Example
In this example an image is loaded from the client area of the current foreground window:

Set hImage = MImgLoadFromScreen( hWndNULL, MIMG_SCREEN_WNDCLAREAONLY | MIMG_SCREEN_WNDFOREGROUND )

See also
Load functions

Created with the Personal Edition of HelpNDoc: Produce online help for Qt applications