网站首页  词典首页

请输入您要查询的函数:

 

术语 drawedge
释义 DrawEdge
语法:
BOOL DrawEdge(
__in HDC hdc,
__inout LPRECT qrc,
__in UINT edge,
__in UINT grfFlags
);
DrawEdge函数
该DrawEdge函数绘制一个或多个矩形边缘。
参数
hdc [in]
一个句柄,设备上下文。
的QRC [ in , out ]
一个矩形结构,它包含指针逻辑矩形的坐标。
边缘 [in]
在内部和外部边缘类型平局。此参数必须是一个结合党内边境旗和一个外边界标志。内部边界标志如下。
ValueMeaning
BDR_RAISEDINNERRaised内边缘。
BDR_SUNKENINNERSunken内边缘。
外层的边界标志如下。
ValueMeaning
BDR_RAISEDOUTERRaised外缘。
BDR_SUNKENOUTERSunken外缘。
另外,边参数可以指定下列标志之一。
ValueMeaning
EDGE_BUMPCombination的BDR_RAISEDOUTER和BDR_SUNKENINNER。
EDGE_ETCHEDCombination的BDR_SUNKENOUTER和BDR_RAISEDINNER。
EDGE_RAISEDCombination的BDR_RAISEDOUTER和BDR_RAISEDINNER。
EDGE_SUNKENCombination的BDR_SUNKENOUTER和BDR_SUNKENINNER。
grfFlags [in]
边界类型。此参数可以是下列值的组合。
ValueMeaning
BF_ADJUSTIf这个标志传递,收缩的矩形大道中所指出的参数,以排除那些绘制边缘。
如果此标志不获通过,则不要更改矩形指向的准谐振参数。
BF_BOTTOMBottom边界矩形。
BF_BOTTOMLEFTBottom和左边界矩形的一面。
BF_BOTTOMRIGHTBottom和边界矩形的右侧。
BF_DIAGONALDiagonal边界。
BF_DIAGONAL_ENDBOTTOMLEFTDiagonal边界。终点是左下角的矩形角,原产地为右上角。
BF_DIAGONAL_ENDBOTTOMRIGHTDiagonal边界。终结点是底部矩形的右上角,原产地是左上角。
BF_DIAGONAL_ENDTOPLEFTDiagonal边界。终点是左上角的矩形角,原产地是右下角。
BF_DIAGONAL_ENDTOPRIGHTDiagonal边界。终点是顶级矩形的右上角,原产地是左下角。
BF_FLATFlat边界。
BF_LEFTLeft侧边界矩形。
矩形BF_MIDDLEInterior填补。
BF_MONOOne维边界。
BF_RECTEntire边界矩形。
BF_RIGHTRight侧边界矩形。
而瓷砖BF_SOFTSoft按钮。
BF_TOPTop边界矩形。
BF_TOPLEFTTop和左边界矩形的一面。
BF_TOPRIGHTTop和边界矩形的右侧。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DrawEdge Function
The DrawEdge function draws one or more edges of rectangle.
Syntax
BOOL DrawEdge(
__in HDC hdc,
__inout LPRECT qrc,
__in UINT edge,
__in UINT grfFlags
);
Parameters
hdc [in]
A handle to the device context.
qrc [in, out]
A pointer to a RECT structure that contains the logical coordinates of the rectangle.
edge [in]
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.
ValueMeaning
BDR_RAISEDINNERRaised inner edge.
BDR_SUNKENINNERSunken inner edge.

The outer-border flags are as follows.
ValueMeaning
BDR_RAISEDOUTERRaised outer edge.
BDR_SUNKENOUTERSunken outer edge.

Alternatively, the edge parameter can specify one of the following flags.
ValueMeaning
EDGE_BUMPCombination of BDR_RAISEDOUTER and BDR_SUNKENINNER.
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]
The type of border. This parameter can be a combination of the following values.
ValueMeaning
BF_ADJUSTIf 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 qrc parameter.
BF_BOTTOMBottom of border rectangle.
BF_BOTTOMLEFTBottom and left side 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 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.
BF_TOPLEFTTop and left side of border rectangle.
BF_TOPRIGHTTop and right side of border rectangle.

Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Painting and Drawing Overview
Painting and Drawing Functions
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162477(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:32:28