网站首页  词典首页

请输入您要查询的函数:

 

术语 setbkmode
释义 SetBkMode
语法:
int SetBkMode(
__in HDC hdc,
__in int iBkMode
);
SetBkMode函数
该SetBkMode函数设置指定的设备上下文背景混合模式。背景混合模式是用于文本,孵化刷子和笔样式不实线。
参数
hdc [in]
一个句柄,设备上下文。
iBkMode [in]
背景模式。此参数可以是下列值之一。
ValueMeaning
OPAQUEBackground是与前文当前的背景颜色孵化刷,或笔填充绘制。
TRANSPARENTBackground保持不变。
返回值
如果函数成功,返回值指定前背景模式。
如果函数失败,返回值是零。
备注
该SetBkMode功能影响的行线绘制使用由CreatePen函数创建一支笔样式。 SetBkMode不影响使用的制定ExtCreatePen函数创建一支笔线。
实例
有关示例,请参见旋转的文本行。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
绘画和绘图概述
绘画和绘图功能
CreatePen
ExtCreatePen
GetBkMode
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetBkMode Function
The SetBkMode function sets the background mix mode of the specified device context. The background mix mode is used with text, hatched brushes, and pen styles that are not solid lines.
Syntax
int SetBkMode(
__in HDC hdc,
__in int iBkMode
);
Parameters
hdc [in]
A handle to the device context.
iBkMode [in]
The background mode. This parameter can be one of the following values.
ValueMeaning
OPAQUEBackground is filled with the current background color before the text, hatched brush, or pen is drawn.
TRANSPARENTBackground remains untouched.

Return Value
If the function succeeds, the return value specifies the previous background mode.
If the function fails, the return value is zero.
Remarks
The SetBkMode function affects the line styles for lines drawn using a pen created by the CreatePen function. SetBkMode does not affect lines drawn using a pen created by the ExtCreatePen function.
Examples
For an example, see Rotating Lines of Text .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Painting and Drawing Overview
Painting and Drawing Functions
CreatePen
ExtCreatePen
GetBkMode
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162965(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:24:24