BOOL RemoveFontModule(hmodFontResource) | |||
HMODULE hmodFontResource; |
The RemoveFontModule function removes the fonts in the module identified by the handle hmodFontResource from the font table.
hmodFontResource
Contains a handle to a loaded module.
The return value is TRUE if the function is successful. Otherwise, it is FALSE.
Any application that adds or removes fonts from the Windows font table should notify other windows of the change by using the SendMessage function with the hWnd parameter set to -1 to send a WM_FONTCHANGE message to all top-level windows in the system.
The RemoveFontModule function may not actually remove the font resource. If there are outstanding references the font resource remains loaded until no device context is using it.
AddFontModule, SendMessage