网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystempaletteentries
释义 GetSystemPaletteEntries
语法:
UINT GetSystemPaletteEntries(
__in HDC hdc,
__in UINT iStartIndex,
__in UINT nEntries,
__out LPPALETTEENTRY lppe
);
GetSystemPaletteEntries功能
检索功能的GetSystemPaletteEntries从系统调色板与指定的设备上下文(DC)相关的调色板项范围。
参数
hdc [in]
一个句柄,设备上下文。
iStartIndex [in]
第一项是从检索系统调色板。
nEntries [in]
参赛作品数量从检索系统调色板。
lppe [out]
一个一个PALETTEENTRY结构数组的指针收到调色板项。该数组必须至少包含像这位nEntries参数指定的许多结构。如果该参数为NULL,则函数返回调色板中的项的总数。
返回值
如果函数成功,返回值是从调色板检索条目数。
如果函数失败,返回值是零。
备注
应用程序可以判断设备是否支持通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
GetDeviceCaps
GetPaletteEntries
PALETTEENTRY
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetSystemPaletteEntries Function
The GetSystemPaletteEntries function retrieves a range of palette entries from the system palette that is associated with the specified device context (DC).
Syntax
UINT GetSystemPaletteEntries(
__in HDC hdc,
__in UINT iStartIndex,
__in UINT nEntries,
__out LPPALETTEENTRY lppe
);
Parameters
hdc [in]
A handle to the device context.
iStartIndex [in]
The first entry to be retrieved from the system palette.
nEntries [in]
The number of entries to be retrieved from the system palette.
lppe [out]
A pointer to an array of PALETTEENTRY structures to receive the palette entries. The array must contain at least as many structures as specified by the nEntries parameter. If this parameter is NULL, the function returns the total number of entries in the palette.
Return Value
If the function succeeds, the return value is the number of entries retrieved from the palette.
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.
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
GetPaletteEntries
PALETTEENTRY
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144928(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:19:56