返回信息流怎样让TextOut()函数输出文字的底色是透明的啊?请指教,不甚感激。
这是一条镜像帖。来源:北邮人论坛 / cpp / #14597同步于 2008/10/24
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
怎样让TextOut()函数输出文字的底色是透明的啊?
xpsuperman
2008/10/24镜像同步6 回复
订阅后,新回复会通过你的通知中心匿名送达。
6 条回复
SetBkMode
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.
int SetBkMode(
HDC hdc, // handle to DC
int iBkMode // background mode
);
Parameters
hdc
[in] Handle to the device context.
iBkMode
[in] Specifies the background mode. This parameter can be one of the following values. Value Description
OPAQUE Background is filled with the current background color before the text, hatched brush, or pen is drawn.
TRANSPARENT Background remains untouched.
Return Values
If the function succeeds, the return value specifies the previous background mode.
If the function fails, the return value is zero.
Windows NT/2000/XP: To get extended error information, call GetLastError.
re
【 在 windam 的大作中提到: 】
: SetBkMode
: 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.
: int SetBkMode(
: ...................