Creates the image of the specified window in a BMP file.
: The image of the window corresponds to the window as it is displayed in the window editor. To create an image of the window at runtime, use dCopyWindowImage
and the Image
// Create images of the WIN_EditCustomer window
// in the "C:\Images\EditCustomer" file
Res = WindowBitmap(WIN_EditCustomer, "C:\Images\EditCustomer")
<Result> = WindowBitmap(<Window> , <Image file>)
Number of created images. For the specified window, WindowBitmap creates as many images (BMP files) as the number of planes in the window. If the window includes tabs, a single image is created.
<Window>: Window name
Window to use:
This window can be closed.
- Name of the window,
- Character string that contains the name and path of the window to use.
<Image file>: Character string
Name and full (or relative) path of the resulting file (without specifying the extension). A UNC path can be used.
If a single image file is created, its extension will be ".BMP".
If several image files are created, they will have for extension ".B01", ".B02", ...
The image is created with the current system information: colors, fonts, ...