网站首页  词典首页

请输入您要查询的函数:

 

术语 isclipboardformatavailable
释义 IsClipboardFormatAvailable
语法:
BOOL IsClipboardFormatAvailable( UINT format
);
IsClipboardFormatAvailable功能
该函数确定是否IsClipboardFormatAvailable剪贴板包含在指定格式的数据。
参数
格式
[in]指定标准或注册剪贴板格式。对于一个标准的剪贴板格式的说明,见标准剪贴板格式。
返回值
如果剪贴板格式可用,则返回值为非零。
如果剪贴板格式不可用,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
通常,一个应用程序,只承认一个剪贴板格式将调用此函数时,处理WM_INITMENU或WM_INITMENUPOPUP消息。然后该应用程序启用或禁用粘贴菜单项,根据返回值。应用承认一个以上的剪贴板格式应为此目的使用的GetPriorityClipboardFormat功能。
Windows 95/98/Me的:在微软的Unicode层(MSLU)支持IsClipboardFormatAvailable为合成剪贴板格式的支持。有关更多信息,请参阅合成剪贴板格式。使用这种IsClipboardFormatAvailable版本,您必须添加一些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
例如
有关示例,请参见从剪贴板粘贴信息。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
剪贴板概述,CountClipboardFormats,EnumClipboardFormats,GetPriorityClipboardFormat,RegisterClipboardFormat,WM_INITMENU,WM_INITMENUPOPUP消息
==英文原文==IsClipboardFormatAvailable Function
The IsClipboardFormatAvailable function determines whether the clipboard contains data in the specified format.
Syntax
BOOL IsClipboardFormatAvailable( UINT format
);
Parameters
format
[in] Specifies a standard or registered clipboard format. For a description of the standard clipboard formats, see Standard Clipboard Formats .
Return Value
If the clipboard format is available, the return value is nonzero.
If the clipboard format is not available, the return value is zero. To get extended error information, call GetLastError .
Remarks
Typically, an application that recognizes only one clipboard format would call this function when processing the WM_INITMENU or WM_INITMENUPOPUP message. The application would then enable or disable the Paste menu item, depending on the return value. Applications that recognize more than one clipboard format should use the GetPriorityClipboardFormat function for this purpose.
Windows 95/98/Me: The Microsoft Layer for Unicode (MSLU) supports IsClipboardFormatAvailable to provide support for synthetic clipboard formats. For more information, see Synthesized Clipboard Formats . To use this version of IsClipboardFormatAvailable, 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 Pasting Information from the Clipboard .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Clipboard Overview , CountClipboardFormats , EnumClipboardFormats , GetPriorityClipboardFormat , RegisterClipboardFormat , WM_INITMENU , WM_INITMENUPOPUP
==原始网址==http://msdn.microsoft.com/en-us/library/ms649047(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 13:20:26