网站首页  词典首页

请输入您要查询的函数:

 

术语 registerclipboardformat
释义 RegisterClipboardFormat
语法:
UINT RegisterClipboardFormat( LPCTSTR lpszFormat
);
RegisterClipboardFormat功能
该RegisterClipboardFormat函数注册一个新的剪贴板格式。这种格式可以被用来作为一个有效的剪贴板格式。
参数
lpszFormat
[in]指向一个空结束的字符串,名称的新格式。
返回值
如果函数成功,返回值标识登记剪贴板格式。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果具有指定名称已经存在,新的格式格式不是注册登记和返回值标识现有的格式。这使得多个应用程序的数据复制和粘贴使用相同的注册剪贴板格式。请注意,格式名称比较是区分大小写的。
注册剪贴板格式确定范围在0xC000通过0xFFFF的价值。
当注册的剪贴板格式上或从剪贴板中检索内,他们必须在一个HGLOBAL价值形态。
在Windows 95/98/Me:RegisterClipboardFormatW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
例如
有关示例,请参见注册一个剪贴板格式。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
剪贴板概述,CountClipboardFormats,EnumClipboardFormats,GetClipboardFormatName
==英文原文==RegisterClipboardFormat Function
The RegisterClipboardFormat function registers a new clipboard format. This format can then be used as a valid clipboard format.
Syntax
UINT RegisterClipboardFormat( LPCTSTR lpszFormat
);
Parameters
lpszFormat
[in] Pointer to a null-terminated string that names the new format.
Return Value
If the function succeeds, the return value identifies the registered clipboard format.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format. This enables more than one application to copy and paste data using the same registered clipboard format. Note that the format name comparison is case-insensitive.
Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF.
When registered clipboard formats are placed on or retrieved from the clipboard, they must be in the form of an HGLOBAL value.
Windows 95/98/Me: RegisterClipboardFormatW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Example
For an example, see Registering a Clipboard Format .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Clipboard Overview , CountClipboardFormats , EnumClipboardFormats , GetClipboardFormatName
==原始网址==http://msdn.microsoft.com/en-us/library/ms649049(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:27:07