WORD ScanLR(LPPDEVICE lpDestDev, WORD X, WORD Y, PCOLOR dwPhysColor, WORD Style)
Scans the display surface horizontally from the given pixel, looking for the first pixel having the given color or a pixel that has any other color.
Value | Meaning |
Number of scan-lines copied | Function succeeded. |
0x0000 | An error occurred and no scan lines were copied. |
0xFFFF | GDI must simulate the operation. |
lpDestDev
Address of a PDEVICE or PBITMAP structure specifying the destination device or bitmap.
X and Y
The x- and y-coordinates of the starting pixel.
dwPhysColor
Specifies a physical color value.
Style
The action to take. This parameter can be a combination of the following values.
Value | Meaning |
0x0001 | Scans for a pixel with color matching the dwPhysColor parameter. If this value is not given, the function scans for a pixel with color that does not match. |
0x0002 | Scans to the left. If this value is not specified, the function scans to the right. |
The export ordinal for this function is 12.