网站首页  词典首页

请输入您要查询的函数:

 

术语 updatecolors
释义 UpdateColors
语法:
BOOL UpdateColors(
__in HDC hdc
);
UpdateColors功能
该UpdateColors函数更新指定的设备环境的客户端区域的映射在客户端领域当前颜色目前实现的逻辑调色板。
参数
hdc [in]
一个句柄,设备上下文。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
应用程序可以判断设备是否支持通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。
一个具有实现的逻辑调色板无效窗口,可调用作为其客户区重绘替代UpdateColors当系统调色板的变化。
通常的UpdateColors功能更新客户端面积高于划定区域。但是,由于UpdateColors执行颜色转换的基于每个像素的颜色在改变系统调色板,每个在一些色彩精确度这个函数调用的结果。
此函数必须调用WM_PALETTECHANGED后,便收到消息。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
GetDeviceCaps
RealizePalette
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==UpdateColors Function
The UpdateColors function updates the client area of the specified device context by remapping the current colors in the client area to the currently realized logical palette.
Syntax
BOOL UpdateColors(
__in HDC hdc
);
Parameters
hdc [in]
A handle to the device context.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
An application can determine whether a device supports palette operations by calling the GetDeviceCaps function and specifying the RASTERCAPS constant.
An inactive window with a realized logical palette may call UpdateColors as an alternative to redrawing its client area when the system palette changes.
The UpdateColors function typically updates a client area faster than redrawing the area. However, because UpdateColors performs the color translation based on the color of each pixel before the system palette changed, each call to this function results in the loss of some color accuracy.
This function must be called soon after a WM_PALETTECHANGED message is received.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Colors Overview
Color Functions
GetDeviceCaps
RealizePalette
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145166(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:23:00