网站首页  词典首页

请输入您要查询的函数:

 

术语 fillrect
释义 FillRect
语法:
int FillRect(
__in HDC hDC,
__in const RECT *lprc,
__in HBRUSH hbr
);
FillRect函数
该FillRect函数填充使用指定的刷子一个矩形。此功能包括左侧和顶部的边界,但不包括该矩形的右侧和底部边界。
参数
hDC [in]
一个句柄,设备上下文。
利比里亚炼油公司 [in]
一个矩形结构,它包含指针逻辑矩形的坐标填补。
哈佛商业评论 [in]
一个句柄,用于填充矩形的画笔。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
哈佛商业评论参数的确定,可以是一个句柄逻辑刷或颜色值的画笔。如果指定一个处理一个逻辑刷,下面的函数调用之一,以获取处理:CreateHatchBrush,CreatePatternBrush,或CreateSolidBrush。此外,您可以检索处理使用GetStockObject函数刷子的股票之一。如果指定的哈佛商业评论参数颜色值,它必须是标准的系统颜色(值1 1必须添加到所选择的颜色)。例如:
FillRect(探知,与矩形,(HBRUSH)(COLOR_WINDOW +1));
对于所有标准的系统颜色列表,请参阅GetSysColor。
当填充指定的矩形,FillRect不包括矩形的右侧和底部两面。 GDI的填补了矩形最多,但不包括右列的最后一行,无论当前映射模式。
实例
有关示例,请参阅使用矩形。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
填充形状概述
填充形状函数
CreateHatchBrush
CreatePatternBrush
CreateSolidBrush
GetStockObject
RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==FillRect Function
The FillRect function fills a rectangle by using the specified brush. This function includes the left and top borders, but excludes the right and bottom borders of the rectangle.
Syntax
int FillRect(
__in HDC hDC,
__in const RECT *lprc,
__in HBRUSH hbr
);
Parameters
hDC [in]
A handle to the device context.
lprc [in]
A pointer to a RECT structure that contains the logical coordinates of the rectangle to be filled.
hbr [in]
A handle to the brush used to fill the rectangle.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The brush identified by the hbr parameter may be either a handle to a logical brush or a color value. If specifying a handle to a logical brush, call one of the following functions to obtain the handle: CreateHatchBrush , CreatePatternBrush , or CreateSolidBrush . Additionally, you may retrieve a handle to one of the stock brushes by using the GetStockObject function. If specifying a color value for the hbr parameter, it must be one of the standard system colors (the value 1 must be added to the chosen color). For example:

FillRect(hdc, &rect, (HBRUSH) (COLOR_WINDOW+1));
For a list of all the standard system colors, see GetSysColor .
When filling the specified rectangle, FillRect does not include the rectangle's right and bottom sides. GDI fills a rectangle up to, but not including, the right column and bottom row, regardless of the current mapping mode.
Examples
For an example, see Using Rectangles .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Filled Shapes Overview
Filled Shape Functions
CreateHatchBrush
CreatePatternBrush
CreateSolidBrush
GetStockObject
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162719(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:23:21