网站首页  词典首页

请输入您要查询的函数:

 

术语 removefontresource
释义 RemoveFontResource
语法:
BOOL RemoveFontResource(
__in LPCTSTR lpFileName
);
RemoveFontResource功能
该RemoveFontResource函数中删除从系统字体表指定文件的字体。
如果字体增加了使用AddFontResourceEx功能,您必须使用RemoveFontResourceEx功能。
参数
lpFileName [in]
一个指向 null 结尾的字符串指针,名称字体资源文件。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
一个应用程序,增加或删除表中的系统字体的字体,必须事先通过发送WM_FONTCHANGE所有顶级信息系统中的顶层窗口的变化的其他窗口。该应用程序将通过调用设置为HWND_BROADCAST的hwnd参数SendMessage函数此消息。
如果有一个字体未完成的引用,相关的资源保持加载到设备上下文没有使用它。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesRemoveFontResourceW(Unicode)和RemoveFontResourceA(ANSI)的
参见
字体和文字概述
字体和文本函数
AddFontResource
RemoveFontResourceEx
SendMessage消息
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==RemoveFontResource Function
The RemoveFontResource function removes the fonts in the specified file from the system font table.
If the font was added using the AddFontResourceEx function, you must use the RemoveFontResourceEx function.
Syntax
BOOL RemoveFontResource(
__in LPCTSTR lpFileName
);
Parameters
lpFileName [in]
A pointer to a null-terminated string that names a font resource file.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
An application that adds or removes fonts from the system font table should notify other windows of the change by sending a WM_FONTCHANGE message to all top-level windows in the system. The application sends this message by calling the SendMessage function with the hwnd parameter set to HWND_BROADCAST.
If there are outstanding references to a font, the associated resource remains loaded until no device context is using it.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesRemoveFontResourceW (Unicode) and RemoveFontResourceA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
AddFontResource
RemoveFontResourceEx
SendMessage
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162922(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:26:35