术语 | unrealizeobject |
释义 | UnrealizeObject 语法: BOOL UnrealizeObject( __in HGDIOBJ hgdiobj ); UnrealizeObject功能 该UnrealizeObject功能重置的原产地刷或重置一个逻辑调色板。如果hgdiobj参数是一个句柄刷,UnrealizeObject指示系统重置的画笔下一次被选中的起源。如果hgdiobj参数是一个句柄逻辑调色板,UnrealizeObject指示系统,以实现调色板,就像它以前没有实现。在下一次应用程序调用指定的调色板RealizePalette功能,系统完全重新映射逻辑调色板到系统调色板。 参数 hgdiobj [in] 一个句柄,逻辑调色板重置。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 备注 该UnrealizeObject功能不应该用于股票对象。例如,默认的调色板,通过调用GetStockObject(DEFAULT_PALETTE)取得,是股票的对象。 由hgdiobj确定了调色板,可以在一个设备上下文当前选择的调色板。 如果hgdiobj是一刷,UnrealizeObject什么也不做,函数返回TRUE。使用SetBrushOrgEx来设置画笔的来源。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 颜色概述 颜色函数 GetStockObject RealizePalette SetBrushOrgEx 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==UnrealizeObject Function The UnrealizeObject function resets the origin of a brush or resets a logical palette. If the hgdiobj parameter is a handle to a brush, UnrealizeObject directs the system to reset the origin of the brush the next time it is selected. If the hgdiobj parameter is a handle to a logical palette, UnrealizeObject directs the system to realize the palette as though it had not previously been realized. The next time the application calls the RealizePalette function for the specified palette, the system completely remaps the logical palette to the system palette. Syntax BOOL UnrealizeObject( __in HGDIOBJ hgdiobj ); Parameters hgdiobj [in] A handle to the logical palette to be reset. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Remarks The UnrealizeObject function should not be used with stock objects. For example, the default palette, obtained by calling GetStockObject (DEFAULT_PALETTE), is a stock object. A palette identified by hgdiobj can be the currently selected palette of a device context. If hgdiobj is a brush, UnrealizeObject does nothing, and the function returns TRUE. Use SetBrushOrgEx to set the origin of a brush. 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 GetStockObject RealizePalette SetBrushOrgEx Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd145164(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。