ImageGear for C and C++ on Windows v19.4 - Updated
IG_GUI_scan_window_create
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Scan Functions > IG_GUI_scan_window_create

This function creates a scanner window.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_scan_window_create(
       HWND hwndParent,
       DWORD dwPageGrp,
       DWORD dwStyle,
       const LPSTR lpcszTitle,
       INT x,
       INT y,
       INT nWidth,
       INT nHeight,
       HWND FAR* lphwndScan
);

Arguments:

Name Type Description
hwndParent HWND HWND for the parent window.
dwPageGrp DWORD The page for the scanner window.
dwStyle DWORD Window style bits.
lpcszTitle const LPSTR Window title.
x INT X position of the window.
y INT Y position of the window.
nWidth INT Window width.
nHeight INT Window height.
lphwndScan HWND FAR* The handle to the created scanner window.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

To determine the number of errors currently on the error stack use IG_error_check. After fetching all error information you need using IG_error_get, use IG_error_clear to clear the stack.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

C GuiScan