RemoveFontResource
This function removes the fonts in the specified file from the Windows CE font table.
BOOL RemoveFontResource(
LPCTSTR lpFileName
);
Parameters
- lpFileName
[in] Long pointer to a null-terminated string that names a font resource file.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
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 (DC) is using it.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 1.0 and later | Wingdi.h | Mgrast.lib, Mgtt.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
AddFontResource, GetLastError, SendMessage
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.