A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



SubtractRect

The SubtractRect function obtains the coordinates of a rectangle determined by subtracting one rectangle from another.

VB4-32,5,6
Declare Function SubtractRect Lib "user32" Alias "SubtractRect" (lprcDst As RECT, lprcSrc1 As RECT, lprcSrc2 As RECT) As Long

Operating Systems Supported
Requires Windows NT 3.5(1) or later; Requires Windows 95 or later

Library
User32

Parameter Information
- lprcDst
Points to a RECT structure that receives the coordinates of the rectangle determined by subtracting the rectangle pointed to by lprcSrc2 from the rectangle pointed to by lprcSrc1.

- lprcSrc1
Points to a RECT structure from which the function subtracts the rectangle pointed to by lprcSrc2.

- lprcSrc2
Points to a RECT structure that the function subtracts from the rectangle pointed to by lprcSrc1.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Last update: 07 April 2006