Freigeben über


CDC::DrawEdge

Call this member function to draw the edges of a rectangle of the specified type and style.

BOOL DrawEdge(
   LPRECT lpRect,
   UINT nEdge,
   UINT nFlags 
);

Parameters

  • lpRect
    A pointer to a RECT structure that contains the logical coordinates of the rectangle.

  • nEdge
    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. See DrawEdge in the Windows SDK for a table of the parameter's types.

  • nFlags
    The flags that specify the type of border to be drawn. See DrawEdge in the Windows SDK for a table of the parameter's values. For diagonal lines, the BF_RECT flags specify the end point of the vector bounded by the rectangle parameter.

Return Value

Nonzero if successful; otherwise 0.

Requirements

Header: afxwin.h

See Also

Concepts

CDC Class

CDC Members

Hierarchy Chart

DrawEdge