DWORD SetBrushOrg(hDC,X,Y)
This function sets the origin of the brush currently selected into the given device context.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | |
X | int Specifies the x-coordinate (in device units) of the new origin. This value must be in the range 0–7. | |
Y | int Specifies the y-coordinate (in device units) of the new origin. This value must be in the range 0–7. |
The return value specifies the origin of the brush. The previous x-coordinate is in the low-order word, and the previous y-coordinate is in the high-order word.
The original brush origin is at the coordinate (0,0).
The SetBrushOrg function should not be used with stock objects.