网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystempaletteuse
释义 GetSystemPaletteUse
语法:
UINT GetSystemPaletteUse(
__in HDC hdc
);
GetSystemPaletteUse功能
该GetSystemPaletteUse函数检索系统的当前状态(物理)为指定的设备上下文(DC)调色板。
参数
hdc [in]
一个句柄,设备上下文。
返回值
如果函数成功,返回值是系统调色板的当前状态。此参数可以是下列值之一。
ValueMeaning
SYSPAL_NOSTATICThe系统调色板包含没有固定的颜色除了黑色和白色。
SYSPAL_STATICThe系统调色板包含静态的颜色,也不会改变当一个应用程序实现其逻辑调色板。
SYSPAL_ERRORThe给设备上下文是无效的或不支持调色板。
备注
默认情况下,系统调色板包含20个是不会更改的应用程序时,实现其逻辑调色板静态颜色。应用程序可以通过调用获得SetSystemPaletteUse函数访问这些颜色最。
该设备的范畴内为HDC参数确定必须代表设备支持调色板。
应用程序可以决定是否支持设备通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
GetDeviceCaps
SetSystemPaletteUse
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetSystemPaletteUse Function
The GetSystemPaletteUse function retrieves the current state of the system (physical) palette for the specified device context (DC).
Syntax
UINT GetSystemPaletteUse(
__in HDC hdc
);
Parameters
hdc [in]
A handle to the device context.
Return Value
If the function succeeds, the return value is the current state of the system palette. This parameter can be one of the following values.
ValueMeaning
SYSPAL_NOSTATICThe system palette contains no static colors except black and white.
SYSPAL_STATICThe system palette contains static colors that will not change when an application realizes its logical palette.
SYSPAL_ERRORThe given device context is invalid or does not support a color palette.

Remarks
By default, the system palette contains 20 static colors that are not changed when an application realizes its logical palette. An application can gain access to most of these colors by calling the SetSystemPaletteUse function.
The device context identified by the hdc parameter must represent a device that supports color palettes.
An application can determine whether or not a device supports color palettes by calling the GetDeviceCaps function and specifying the RASTERCAPS constant.
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
SetSystemPaletteUse
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144929(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:21:55