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 
);

Параметры

  • 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.

Возвращаемое значение

Nonzero if successful; otherwise 0.

Требования

Header: afxwin.h

См. также

Основные понятия

CDC Class

CDC Members

Hierarchy Chart

DrawEdge