GETVECTORBRUSHSIZE

  #define GETVECTORBRUSHSIZE 27    

  short Control(lpDevice, GETVECTORBRUSHSIZE, lpInData, lpOutData)    
  LPPDEVICE lpDevice;    
  LPLBRUSH lpInData;    
  LPPOINT lpOutData;    

The GETVECTORBRUSHSIZE escape retrieves the size in device units of a plotter pen used to fill closed figures. GDI uses this information to prevent the filling of closed figures (for example, rectangles and ellipses) from overwriting the borders of the figure.

Parameters

lpDevice

Points to a PDEVICE structure specifying the destination device.

lpInData

Points to a LBRUSH structure that specifies the brush for which data is to be returned. The LBRUSH structure has the following form:

typedef struct tagLBRUSH {

short lbStyle;

long lbColor;

short lbHatch;

long lbBkColor;

} LBRUSH;

lpOutData

Points to a POINT structure that receives the width of the pen in device units. The escape copies the width to the y member. The POINT structure has the following form:

typedef struct tagPOINT {

short x;

short y;

} POINT;

Return Value

The return value is 1 if the escape is successful. Otherwise, it is 0 if the escape is not successful or not implemented.