网站首页  词典首页

请输入您要查询的函数:

 

术语 createhatchbrush
释义 CreateHatchBrush
语法:
HBRUSH CreateHatchBrush(
__in int fnStyle,
__in COLORREF clrref
);
CreateHatchBrush功能
该CreateHatchBrush函数创建一个合乎逻辑的画笔具有指定舱口图案和颜色。
参数
fnStyle [in]
在孵化的笔法。此参数可以是下列值之一。
ValueMeaning
HS_BDIAGONAL45 -向上左度到右孵化
HS_CROSSHorizontal和垂直网纹
HS_DIAGCROSS45度网纹
HS_FDIAGONAL45 -向下左度到右孵化
HS_HORIZONTALHorizontal舱口
HS_VERTICALVertical舱口
clrref [in]
该是为舱口用画笔前景色。要创建一个COLORREF颜色值,使用RGB宏。
返回值
如果函数成功,返回值确定一个逻辑画笔。
如果函数失败,返回值为NULL。
备注
画笔是一个位图,该系统使用的涂料填充形状的内部。
应用程序创建后,通过调用CreateHatchBrush一刷,可以选择到任何设备的情况下通过调用SelectObject函数画笔。
如果应用程序使用舱门刷,以填补双方父母和一个配色子窗口的背景,它可能需要画之前设置的子窗口背景的刷子来源。您可以通过让您的应用程序调用SetBrushOrgEx函数这一点。您的应用程序可以通过调用函数的GetBrushOrgEx当前刷的起源。
当您不再需要刷,调用DeleteObject函数将其删除。
ICM的:没有颜色的画笔创作完成。然而,色彩管理时执行画笔是ICM的选择到一个启用的设备上下文。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数
CreateDIBPatternBrush
CreateDIBPatternBrushPt
CreatePatternBrush
CreateSolidBrush
DeleteObject
GetBrushOrgEx
SelectObject
SetBrushOrgEx
COLORREF
的RGB
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreateHatchBrush Function
The CreateHatchBrush function creates a logical brush that has the specified hatch pattern and color.
Syntax
HBRUSH CreateHatchBrush(
__in int fnStyle,
__in COLORREF clrref
);
Parameters
fnStyle [in]
The hatch style of the brush . This parameter can be one of the following values.
ValueMeaning
HS_BDIAGONAL45-degree upward left-to-right hatch
HS_CROSSHorizontal and vertical crosshatch
HS_DIAGCROSS45-degree crosshatch
HS_FDIAGONAL45-degree downward left-to-right hatch
HS_HORIZONTALHorizontal hatch
HS_VERTICALVertical hatch

clrref [in]
The foreground color of the brush that is used for the hatches. To create a COLORREF color value, use the RGB macro.
Return Value
If the function succeeds, the return value identifies a logical brush.
If the function fails, the return value is NULL.
Remarks
A brush is a bitmap that the system uses to paint the interiors of filled shapes.
After an application creates a brush by calling CreateHatchBrush, it can select that brush into any device context by calling the SelectObject function.
If an application uses a hatch brush to fill the backgrounds of both a parent and a child window with matching color, it may be necessary to set the brush origin before painting the background of the child window. You can do this by having your application call the SetBrushOrgEx function. Your application can retrieve the current brush origin by calling the GetBrushOrgEx function.
When you no longer need the brush, call the DeleteObject function to delete it.
ICM: No color is done at brush creation. However, color management is performed when the brush is selected into an ICM-enabled device context.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Brushes Overview
Brush Functions
CreateDIBPatternBrush
CreateDIBPatternBrushPt
CreatePatternBrush
CreateSolidBrush
DeleteObject
GetBrushOrgEx
SelectObject
SetBrushOrgEx
COLORREF
RGB
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183504(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 13:17:56