2 minutes to read
In this article
DrawEdge function draws one or more edges of rectangle. Syntax
A handle to the device context.
A pointer to a
RECT structure that contains the logical coordinates of the rectangle.
The type of inner and outer edges to draw. This parameter must be a combination of one inner-border flag and one outer-border flag. The inner-border flags are as follows.
Raised inner edge.
Sunken inner edge.
The outer-border flags are as follows.
Raised outer edge.
Sunken outer edge.
edge parameter can specify one of the following flags.
Combination of BDR_RAISEDOUTER and BDR_SUNKENINNER.
Combination of BDR_SUNKENOUTER and BDR_RAISEDINNER.
Combination of BDR_RAISEDOUTER and BDR_RAISEDINNER.
Combination of BDR_SUNKENOUTER and BDR_SUNKENINNER.
The type of border. This parameter can be a combination of the following values.
If this flag is passed, shrink the rectangle pointed to by the
qrc parameter to exclude the edges that were drawn.
If this flag is not passed, then do not change the rectangle pointed to by the
Bottom of border rectangle.
Bottom and left side of border rectangle.
Bottom and right side of border rectangle.
Diagonal border. The end point is the lower-left corner of the rectangle; the origin is top-right corner.
Diagonal border. The end point is the lower-right corner of the rectangle; the origin is top-left corner.
Diagonal border. The end point is the top-left corner of the rectangle; the origin is lower-right corner.
Diagonal border. The end point is the top-right corner of the rectangle; the origin is lower-left corner.
Left side of border rectangle.
Interior of rectangle to be filled.
Entire border rectangle.
Right side of border rectangle.
Soft buttons instead of tiles.
Top of border rectangle.
Top and left side of border rectangle.
Top and right side of border rectangle.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Windows version Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Painting and Drawing Functions
Painting and Drawing Overview