请教各位大虾

PackChen 2006-07-12 02:01:56
DrawEdge能画多少种类型的变框呢??
画实线的边框的参数是什么样的呢??
...全文
62 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
PackChen 2006-07-12
  • 打赏
  • 举报
回复
多谢楼上两位的指教
偶也知道这些参数
但是不懂得怎么进行组合
wanilyer 2006-07-12
  • 打赏
  • 举报
回复
CDC::DrawEdge
BOOL DrawEdge( LPRECT lpRect, UINT nEdge, UINT nFlags );

Return Value

Nonzero if successful; otherwise 0.

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 the Remarks section for a table of the parameter’s types.

nFlags

The flags that specify the type of border to be drawn. See the Remarks section for a table of the parameter’s values:

Remarks

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

The inner and outer border flags are as follows:

Inner-border flags
BDR_RAISEDINNER Raised inner edge.


BDR_SUNKENINNER Sunken inner edge.
Outer-border flags
BDR_RAISEDOUTER Raised outer edge.


BDR_SUNKENOUTER Sunken outer edge.
The nEdge parameter must be a combination of one inner and one outer border flag. The nEdge parameter can specify one of the following flags:

EDGE_BUMP Combination of BDR_RAISEDOUTER and BDR_SUNKENINNER.


EDGE_ETCHED Combination of BDR_SUNKENOUTER and BDR_RAISEDINNER.


EDGE_RAISED Combination of BDR_RAISEDOUTER and BDR_RAISEDINNER.


EDGE_SUNKEN Combination of BDR_SUNKENOUTER and BDR_SUNKENINNER.
The nFlags parameter types are as follows:

BF_RECT Entire border rectangle.


BF_LEFT Left side of border rectangle.


BF_BOTTOM Bottom of border rectangle.


BF_RIGHT Right side of border rectangle.


BF_TOP Top of border rectangle.


BF_TOPLEFT Top and left side of border rectangle.


BF_TOPRIGHT Top and right side of border rectangle.


BF_BOTTOMLEFT Bottom and left side of border rectangle.


BF_BOTTOMRIGHT Bottom and right side of border rectangle.
For diagonal lines, the BF_RECT flags specify the end point of the vector bounded by the rectangle parameter.

BF_DIAGONAL_ENDBOTTOMLEFT Diagonal border. The end point is the bottom-left corner of the rectangle; the origin is top-right corner.


BF_DIAGONAL_ENDBOTTOMRIGHT Diagonal border. The end point is the bottom-right corner of the rectangle; the origin is top-left corner.


BF_DIAGONAL_ENDTOPLEFT Diagonal border. The end point is the top-left corner of the rectangle; the origin is bottom-right corner.


BF_DIAGONAL_ENDTOPRIGHT Diagonal border. The end point is the top-right corner of the rectangle; the origin is bottom-left corner.
For more information about the Windows API DrawEdge, see::DrawEdge in the Win32 SDK Programmer’s Reference.

CDC Overview | Class Members | Hierarchy Chart


MSDN的原文 看看吧
mynamelj 2006-07-12
  • 打赏
  • 举报
回复
我真怀凝你没有MSDN

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧