|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| gdi32.lib
| Header File
| wingdi.h
| Unicode
| WinNT
| Platform Notes
| Windows 95: int == 16 bits
|
|
|
RemoveFontResource
The RemoveFontResource function removes the fonts in the specified file from the Windows font table.
BOOL RemoveFontResource(
LPCTSTR lpFileName
| // address of font-resource filename
| );
|
|
Parameters
lpFileName
Points to a null-terminated string that names a font resource file.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
An application that adds or removes fonts from the Windows public 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.
See Also
AddFontResource, SendMessage
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|