Gdi::SetBrushOrgEx_I (Windows Embedded CE 6.0)
1/6/2010
This method is called by an application to set the brush origin of the next brush selected into the specified device context.
Syntax
static WINGDIAPI BOOL WINAPI SetBrushOrgEx_I(
HDC hdc,
int nXOrg,
int nYOrg,
POINT* lppt
);
Parameters
- hdc
[in] Handle to the device context.
nXOrg
[in] Integer that specifies the x-coordinate, in device units, of the new brush origin.If this value is greater than the brush width, the value is reduced using the modulus operator (nXOrg mod brush width).
nYOrg
[in] Integer that specifies the y-coordinate, in device units, of the new brush origin.If this value is greater than the brush height, its value is reduced using the modulus operator (nYOrg mod brush height).
lppt
[out] Long pointer to a POINT structure that receives the previous brush origin.This parameter can be NULL if the previous brush origin is not required.
Return Value
Nonzero indicates success.
Zero indicates failure.
To get extended error information, call GetLastError.
Remarks
This method is an internal version of the SetBrushOrgEx function.
A brush is a bitmap that the system uses to paint the interiors of filled shapes.
The brush origin is a pair of coordinates specifying the location of one pixel in the bitmap.
The default brush origin coordinates are (0,0).
For horizontal coordinates, the value 0 corresponds to the leftmost column of pixels; the width corresponds to the rightmost column.
For vertical coordinates, the value 0 corresponds to the uppermost row of pixels; the height corresponds to the lowermost row.
The system tracks the origin of all window-managed device contexts and adjusts the brushes for those contexts as necessary to maintain an alignment of patterns on the surface.
The brush origin set with this call is relative to the upper left corner of the client area.
Automatic tracking of the brush origin is not supported.
Applications must call Gdi::SetBrushOrgEx_I to align the brush before using it and call the Gdi::SelectObject_I method to select the modified brush.
Requirements
Header | gdi.hpp |
Windows Embedded CE | Windows CE .NET 4.0 and later |