网站首页  词典首页

请输入您要查询的函数:

 

术语 realizepalette
释义 RealizePalette
语法:
UINT RealizePalette(
__in HDC hdc
);
RealizePalette函数
该RealizePalette函数映射从目前的逻辑调色板调色板项,以系统调色板。
参数
hdc [in]
阿设备句柄断章取义,把一个逻辑调色板已经选定。
返回值
如果函数成功,返回值是条目的映射到系统调色板的逻辑调色板数目。
如果函数失败,返回值是GDI_ERROR。
备注
应用程序可以判断设备是否支持通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。
该RealizePalette函数修改为指定的设备上下文关联的设备的调色板。如果该设备上下文是一个内存DC,对入区选择位图颜色表被修改。如果该设备上下文是一个显示区,该设备的物理调色板被修改。
一个逻辑调色板颜色之间是密集的应用程序和系统缓冲区,允许这些应用程序能够使用尽可能多的颜色没有必要与其他窗口中显示的色彩干扰。
当一个应用程序的窗口具有焦点,它调用RealizePalette功能,系统试图实现尽可能多的要求的颜色。同样也是如此不甚活跃的Windows应用程序。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
CreatePalette
GetDeviceCaps
SelectPalette
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==RealizePalette Function
The RealizePalette function maps palette entries from the current logical palette to the system palette.
Syntax
UINT RealizePalette(
__in HDC hdc
);
Parameters
hdc [in]
A handle to the device context into which a logical palette has been selected.
Return Value
If the function succeeds, the return value is the number of entries in the logical palette mapped to the system palette.
If the function fails, the return value is GDI_ERROR.
Remarks
An application can determine whether a device supports palette operations by calling the GetDeviceCaps function and specifying the RASTERCAPS constant.
The RealizePalette function modifies the palette for the device associated with the specified device context. If the device context is a memory DC, the color table for the bitmap selected into the DC is modified. If the device context is a display DC, the physical palette for that device is modified.
A logical palette is a buffer between color-intensive applications and the system, allowing these applications to use as many colors as needed without interfering with colors displayed by other windows.
When an application's window has the focus and it calls the RealizePalette function, the system attempts to realize as many of the requested colors as possible. The same is also true for applications with inactive windows.
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
CreatePalette
GetDeviceCaps
SelectPalette
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162896(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:26:25