GetBrushOrgEx

3.1

  BOOL GetBrushOrgEx(hDC, lpPoint)    
  HDC hDC; /* handle of device context */
  POINT FAR* lpPoint; /* address of structure for brush origin */

The GetBrushOrgEx function retrieves the current brush origin for the given device context.

Parameters

hDC

Identifies the device context.

lpPoint

Points to a POINT structure to which the device coordinates of the brush origin are to be returned. The POINT structure has the following form:

typedef struct tagPOINT {   /* pt */
   int x;
   int y;
} POINT;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

Comments

The initial brush origin is at the coordinate (0,0).

See Also

SetBrushOrg