MImgLoadFromScreen
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. |
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: Easy EBook and documentation generator