Partager via


BORDERWIDTHS structure

Defines the coordinates of the upper-left and lower-right corners of a border rectangle.

Syntax

typedef struct _BORDERWIDTHS {
  LONG left;
  LONG top;
  LONG right;
  LONG bottom;
} BORDERWIDTHS, *LPBORDERWIDTHS;

Members

  • left
    Type: LONG

    Specifies the x-coordinate of the upper-left corner of the rectangle.

  • top
    Type: LONG

    Specifies the y-coordinate of the upper-left corner of the rectangle.

  • right
    Type: LONG

    Specifies the x-coordinate of the lower-right corner of the rectangle.

  • bottom
    Type: LONG

    Specifies the y-coordinate of the lower-right corner of the rectangle.

Remarks

This structure is not defined implicitly. It is simply an alias for a RECT structure. It is also identical to the RECTL structure.

typedef RECT BORDERWIDTHS;

typedef LPRECT LPBORDERWIDTHS;

typedef LPCRECT LPCBORDERWIDTHS;

By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose coordinates are (right, bottom) lies immediately outside of the rectangle. A rectangle defined by BORDERWIDTHS is filled up to, but not including, the right column and bottom row of pixels.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Oleidl.h

IDL

Oleidl.idl

See also

Rectangles Overview

RECT

RECTL

IDockingWindowSite

TOOLBARITEM