网站首页  词典首页

请输入您要查询的函数:

 

术语 deleteobject
释义 DeleteObject
语法:
BOOL DeleteObject(
__in HGDIOBJ hObject
);
DeleteObject函数
该DeleteObject函数删除逻辑笔,画笔,字体,位图,地区或调色板,释放所有的系统与对象关联的资源。在对象被删除,指定的句柄不再有效。
参数
hObject [in]
一个句柄,逻辑笔,画笔,字体,位图,地区或调色板。
返回值
如果函数成功,返回值为非零。
如果指定的句柄无效或正在成为一个特区,选择返回值是零。
备注
不要删除图形对象(笔或刷子),而它仍然处于一种直流选择。
当一个模式画笔被删除,与刷相关的位图不会被删除。位图必须删除独立。
实例
有关示例,请参阅创建彩色笔和刷子。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesDeleteObjectW(Unicode的)
参见
设备上下文概述
设备上下文函数
SelectObject
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DeleteObject Function
The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
Syntax
BOOL DeleteObject(
__in HGDIOBJ hObject
);
Parameters
hObject [in]
A handle to a logical pen, brush, font, bitmap, region, or palette.
Return Value
If the function succeeds, the return value is nonzero.
If the specified handle is not valid or is currently selected into a DC, the return value is zero.
Remarks
Do not delete a drawing object (pen or brush) while it is still selected into a DC.
When a pattern brush is deleted, the bitmap associated with the brush is not deleted. The bitmap must be deleted independently.
Examples
For an example, see Creating Colored Pens and Brushes .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesDeleteObjectW (Unicode)
See Also
Device Contexts Overview
Device Context Functions
SelectObject
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183539(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 更新时间:2025/1/9 4:09:51