网站首页  词典首页

请输入您要查询的函数:

 

术语 createsolidbrush
释义 CreateSolidBrush
语法:
HBRUSH CreateSolidBrush(
__in COLORREF crColor
);
CreateSolidBrush函数
该CreateSolidBrush函数创建一个合乎逻辑的画笔具有指定纯色。
参数
crColor [in]
的画笔颜色。要创建一个COLORREF颜色值,使用RGB宏。
返回值
如果函数成功,返回值确定一个逻辑画笔。
如果函数失败,返回值为NULL。
备注
当您不再需要HBRUSH对象,调用DeleteObject函数将其删除。
阿固体画笔是一个位图,该系统使用的涂料填充形状的内部。
应用程序创建后,通过调用CreateSolidBrush一刷,可以选择到任何设备的情况下通过调用SelectObject函数画笔。
画一个系统颜色刷子,应用程序应该使用GetSysColorBrush(nIndex,而不是CreateSolidBrush)(GetSysColor(nIndex)),因为GetSysColorBrush返回刷,而不是缓存的分配一个新的。
ICM的:没有色彩管理是画笔创作完成。然而,色彩管理时执行画笔是ICM的选择到一个启用的设备上下文。
实例
有关示例,请参阅创建彩色笔和刷子。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数
CreateDIBPatternBrush
CreateDIBPatternBrushPt
CreateHatchBrush
CreatePatternBrush
DeleteObject
GetSysColorBrush
SelectObject
COLORREF
的RGB
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreateSolidBrush Function
The CreateSolidBrush function creates a logical brush that has the specified solid color.
Syntax
HBRUSH CreateSolidBrush(
__in COLORREF crColor
);
Parameters
crColor [in]
The color of the brush. 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
When you no longer need the HBRUSH object, call the DeleteObject function to delete it.
A solid brush is a bitmap that the system uses to paint the interiors of filled shapes.
After an application creates a brush by calling CreateSolidBrush, it can select that brush into any device context by calling the SelectObject function.
To paint with a system color brush, an application should use GetSysColorBrush (nIndex) instead of CreateSolidBrush(GetSysColor(nIndex)), because GetSysColorBrush returns a cached brush instead of allocating a new one.
ICM: No color management is done at brush creation. However, color management is performed when the brush is selected into an ICM-enabled device context.
Examples
For an example, see Creating Colored Pens and Brushes .
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
CreateHatchBrush
CreatePatternBrush
DeleteObject
GetSysColorBrush
SelectObject
COLORREF
RGB
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183518(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:31:47