Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

DrawEdge (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function draws one or more edges of a rectangle.

BOOL DrawEdge(
  HDC hdc, 
  LPRECT qrc, 
  UINT edge, 
  UINT grfFlags
); 

Parameters

hdc
[in] Handle to the device context.
qrc
[in] Pointer to a RECT structure that contains the logical coordinates of the rectangle.
edge
[in] Specifies the type of inner and outer edge 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.

ValueDescription
BDR_RAISEDINNERRaised inner edge.
BDR_SUNKENINNERSunken inner edge.

The outer-border flags are as follows.

ValueDescription
BDR_RAISEDOUTERRaised outer edge.
BDR_SUNKENOUTERSunken outer edge.

Alternatively, the edge parameter can specify one of the following flags.

ValueDescription
EDGE_ETCHEDCombination of BDR_SUNKENOUTER and BDR_RAISEDINNER.
EDGE_RAISEDCombination of BDR_RAISEDOUTER and BDR_RAISEDINNER.
EDGE_SUNKENCombination of BDR_SUNKENOUTER and BDR_SUNKENINNER.
grfFlags
[in] Specifies the type of border.

This parameter can be a combination of the following values.

ValueDescription
BF_ADJUSTRectangle to be adjusted to leave space for client area.
BF_BOTTOMBottom of border rectangle.
BF_BOTTOMRIGHTBottom and right side of border rectangle.
BF_DIAGONALDiagonal border.
BF_DIAGONAL_ENDBOTTOMLEFTDiagonal border. The end point is the bottom left corner of the rectangle; the origin is the top right corner.
BF_DIAGONAL_ENDBOTTOMRIGHTDiagonal border.

The end point is the bottom right corner of the rectangle; the origin is top left corner.

BF_DIAGONAL_ENDTOPLEFTDiagonal border.

The end point is the top left corner of the rectangle; the origin is bottom right corner.

BF_DIAGONAL_ENDTOPRIGHTDiagonal border.

The end point is the top right corner of the rectangle; the origin is bottom left corner.

BF_FLATFlat border.
BF_LEFTLeft side of border rectangle.
BF_MIDDLEInterior of rectangle to be filled.
BF_MONOOne-dimensional border.
BF_RECTEntire border rectangle.
BF_RIGHTRight side of border rectangle.
BF_SOFTSoft buttons instead of tiles.
BF_TOPTop of border rectangle.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

RECT | GDI Functions


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft