BASE CLASS FOR RECTANGLES. More...
#include <Zclassut.h>
Public Member Functions | |
| void | Set (int xLeft, int yTop, int xRight, int yBottom) |
| bool | isEmpty (void) |
| void | toClient (HWND hWnd) |
BASE CLASS FOR RECTANGLES.
Applications use rectangles to specify rectangular areas on the screen or in a window. Rectangles are used for the cursor clipping region, the invalid portion of the client area, an area for displaying formatted text, or the scroll area. Your applications can also use rectangles to fill, frame, or invert a portion of the client area with a given brush, and to retrieve the coordinates of a window or a window's client area.
| bool xrectangle::isEmpty | ( | void | ) | [inline] |
Determines whether the rectangle is empty. A empty rectangle is one that has no area; that is, the coordinate of the right side is less than or equal to the coordinate of the left side, or the coordinate of the bottom side is less than or equal to the coordinate of the top side. If the rectangle is empty, the return value is true.
| void xrectangle::Set | ( | int | xLeft, | |
| int | yTop, | |||
| int | xRight, | |||
| int | yBottom | |||
| ) | [inline] |
Sets the coordinates of the rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the class.
| xLeft | - Specifies the x-coordinate of the rectangle's upper-left corner. | |
| yTop | - Specifies the y-coordinate of the rectangle's upper-left corner. | |
| xRight | - Specifies the x-coordinate of the rectangle's lower-right corner. | |
| yBottom | - Specifies the y-coordinate of the rectangle's lower-right corner. |
| void xrectangle::toClient | ( | HWND | hWnd | ) | [inline] |
Converts the screen coordinates of a specified rectangle on the screen to client coordinates of a specified window.
1.6.1