PatBlt function (wingdi.h)
The PatBlt function paints the specified rectangle using the brush that is currently selected into the specified device context. The brush color and the surface color or colors are combined by using the specified raster operation.
BOOL PatBlt( [in] HDC hdc, [in] int x, [in] int y, [in] int w, [in] int h, [in] DWORD rop );
A handle to the device context.
The x-coordinate, in logical units, of the upper-left corner of the rectangle to be filled.
The y-coordinate, in logical units, of the upper-left corner of the rectangle to be filled.
The width, in logical units, of the rectangle.
The height, in logical units, of the rectangle.
The raster operation code. This code can be one of the following values.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
The values of the dwRop parameter for this function are a limited subset of the full 256 ternary raster-operation codes; in particular, an operation code that refers to a source rectangle cannot be used.
Not all devices support the PatBlt function. For more information, see the description of the RC_BITBLT capability in the GetDeviceCaps function.
For an example, see "Example of Menu-Item Bitmaps" in Using Menus.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|