网站首页  词典首页

请输入您要查询的函数:

 

术语 getcurrentobject
释义 GetCurrentObject
语法:
HGDIOBJ GetCurrentObject(
__in HDC hdc,
__in UINT uObjectType
);
GetCurrentObject功能
该GetCurrentObject函数检索的句柄指定类型的已到指定的设备上下文(DC)选定的对象。
参数
hdc [in]
句柄到DC。
uObjectType [in]
对象类型质疑。此参数可以是下列值之一。
ValueMeaning
OBJ_BITMAPReturns当前选定的位图。
OBJ_BRUSHReturns当前选定的画笔。
OBJ_COLORSPACEReturns当前的色彩空间。
OBJ_FONTReturns目前选定的字体。
OBJ_PALReturns当前选定调色板。
OBJ_PENReturns当前选定笔。
返回值
如果函数成功,返回值是一个句柄指定的对象。
如果函数失败,返回值为NULL。
备注
一个应用程序可以使用GetCurrentObject和GetObject函数来检索目前到指定的区选定的图形对象的描述。
实例
有关示例,请参见检索图形对象属性和选择新的图形对象。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
设备上下文概述
设备上下文函数
DeleteObject
GetObject
SelectObject
CreateColorSpace
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetCurrentObject Function
The GetCurrentObject function retrieves a handle to an object of the specified type that has been selected into the specified device context (DC).
Syntax
HGDIOBJ GetCurrentObject(
__in HDC hdc,
__in UINT uObjectType
);
Parameters
hdc [in]
A handle to the DC.
uObjectType [in]
The object type to be queried. This parameter can be one of the following values.
ValueMeaning
OBJ_BITMAPReturns the current selected bitmap.
OBJ_BRUSHReturns the current selected brush.
OBJ_COLORSPACEReturns the current color space.
OBJ_FONTReturns the current selected font.
OBJ_PALReturns the current selected palette.
OBJ_PENReturns the current selected pen.

Return Value
If the function succeeds, the return value is a handle to the specified object.
If the function fails, the return value is NULL.
Remarks
An application can use the GetCurrentObject and GetObject functions to retrieve descriptions of the graphic objects currently selected into the specified DC.
Examples
For an example, see Retrieving Graphic-Object Attributes and Selecting New Graphic Objects .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Device Contexts Overview
Device Context Functions
DeleteObject
GetObject
SelectObject
CreateColorSpace
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144869(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:25:21