术语 | animatepalette |
释义 | AnimatePalette 语法: BOOL AnimatePalette( __in HPALETTE hpal, __in UINT iStartIndex, __in UINT cEntries, __in const PALETTEENTRY *ppe ); AnimatePalette功能 替换函数的AnimatePalette在指定的逻辑调色板项。 参数 hpal [in] 一个句柄,逻辑调色板。 iStartIndex [in] 第一个逻辑调色板项被替换。 舜帝 [in] 项数被替换。 个人防护装备 [in] 在一个不用于取代目前的项目PALETTEENTRY结构数组指针的第一个成员。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 备注 应用程序可以判断设备是否支持通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。 唯一的AnimatePalette功能的变化与相应的LOGPALETTE结构palPalEntry成员设置PC_RESERVED标志项。 如果给定的调色板与相关活动窗口,在调色板的颜色随即更换。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 颜色概述 颜色函数 CreatePalette GetDeviceCaps LOGPALETTE PALETTEENTRY 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==AnimatePalette Function The AnimatePalette function replaces entries in the specified logical palette. Syntax BOOL AnimatePalette( __in HPALETTE hpal, __in UINT iStartIndex, __in UINT cEntries, __in const PALETTEENTRY *ppe ); Parameters hpal [in] A handle to the logical palette. iStartIndex [in] The first logical palette entry to be replaced. cEntries [in] The number of entries to be replaced. ppe [in] A pointer to the first member in an array of PALETTEENTRY structures used to replace the current entries. 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. The AnimatePalette function only changes entries with the PC_RESERVED flag set in the corresponding palPalEntry member of the LOGPALETTE structure. If the given palette is associated with the active window, the colors in the palette are replaced immediately. 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 LOGPALETTE PALETTEENTRY Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd183355(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。