Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CDC::SetBrushOrg
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CPoint SetBrushOrg( int x, int y );
  CPoint SetBrushOrg( POINT point );
 
  Parameter   Description
 
  <x>         Specifies the x-coordinate (in device units) of the new
              origin. This value must be in the range 0-7.
 
  <y>         Specifies the y-coordinate (in device units) of the new
              origin. This value must be in the range 0-7.
 
  <point>     Specifies the x- and y-coordinates of the new origin. Each
              value must be in the range 0-7. You can pass either a
              POINT structure or a CPoint object for this parameter.
 
  Remarks
 
  Specifies the origin that GDI will assign to the next brush that an
  application selects into a device context.
 
  Do not use SetBrushOrg with stock CBrush objects.
 
  Return Value
 
  The previous origin of the brush in device units (which are relative to
  the origin of the desktop window).
 
  See Also
 
  CDC::GetBrushOrg, CDC::SelectObject, CGdiObject::UnrealizeObject,
  ::SetBrushOrg
 
 
                                     -♦-