网站首页  词典首页

请输入您要查询的函数:

 

术语 getpaletteentries
释义 GetPaletteEntries
语法:
UINT GetPaletteEntries(
__in HPALETTE hpal,
__in UINT iStartIndex,
__in UINT nEntries,
__out LPPALETTEENTRY lppe
);
GetPaletteEntries功能
检索功能的GetPaletteEntries从给定的逻辑调色板的调色板项指定范围。
参数
hpal [in]
一个句柄,逻辑调色板。
iStartIndex [in]
在逻辑调色板首次进入检索。
nEntries [in]
该项目在逻辑调色板的数目检索。
lppe [out]
一个一个PALETTEENTRY结构数组的指针收到调色板项。该数组必须至少包含像这位nEntries参数指定的许多结构。
返回值
如果函数成功和处理的逻辑调色板是一个有效的指针(不为NULL),返回值是从逻辑调色板检索条目数。如果函数成功和处理的逻辑调色板为NULL,则返回值是在给定项目调色板数量。
如果函数失败,返回值是零。
备注
应用程序可以判断设备是否支持通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。
如果nEntries参数指定比调色板中存在多个项目,在PALETTEENTRY结构的其余成员都没有改变。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
GetDeviceCaps
GetSystemPaletteEntries
SetPaletteEntries
PALETTEENTRY
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetPaletteEntries Function
The GetPaletteEntries function retrieves a specified range of palette entries from the given logical palette.
Syntax
UINT GetPaletteEntries(
__in HPALETTE hpal,
__in UINT iStartIndex,
__in UINT nEntries,
__out LPPALETTEENTRY lppe
);
Parameters
hpal [in]
A handle to the logical palette.
iStartIndex [in]
The first entry in the logical palette to be retrieved.
nEntries [in]
The number of entries in the logical palette to be retrieved.
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.
Return Value
If the function succeeds and the handle to the logical palette is a valid pointer (not NULL), the return value is the number of entries retrieved from the logical palette. If the function succeeds and handle to the logical palette is NULL, the return value is the number of entries in the given 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.
If the nEntries parameter specifies more entries than exist in the palette, the remaining members of the PALETTEENTRY structure are not altered.
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
GetSystemPaletteEntries
SetPaletteEntries
PALETTEENTRY
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144907(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 11:30:36