Click here to Skip to main content
15,921,295 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: any C/C++ learning resource for vxworks platform? Pin
George_George20-Jun-06 19:29
George_George20-Jun-06 19:29 
GeneralRe: any C/C++ learning resource for vxworks platform? Pin
Mekong River16-Jun-06 4:27
Mekong River16-Jun-06 4:27 
GeneralRe: any C/C++ learning resource for vxworks platform? Pin
George_George20-Jun-06 2:15
George_George20-Jun-06 2:15 
GeneralRe: any C/C++ learning resource for vxworks platform? Pin
Mekong River20-Jun-06 15:11
Mekong River20-Jun-06 15:11 
GeneralRe: any C/C++ learning resource for vxworks platform? Pin
Mekong River16-Jun-06 4:30
Mekong River16-Jun-06 4:30 
GeneralRe: any C/C++ learning resource for vxworks platform? Pin
George_George20-Jun-06 2:17
George_George20-Jun-06 2:17 
GeneralRe: any C/C++ learning resource for vxworks platform? Pin
Mekong River20-Jun-06 15:13
Mekong River20-Jun-06 15:13 
QuestionHow to programly remove a system font Pin
BoHuang13-Jun-06 17:56
BoHuang13-Jun-06 17:56 
I use RemoveFontResourceW in GDI32 to remove the system font Roman, but failed. The step as follows,

1. Call RemoveFontResourceW. (The return value is non-zero, that is, the function succeeds)

2. Call SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0) (The return value indicates it succeeds)

3. Move roman.fon file from C:\windows\fonts to another folder using File.Move function in .net framework.

After finish the steps, I can still see the font file in c:\windows\fonts folder, although the file size has been changed to 0. Roman entry has been remove in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts.

In order to verify if Roman font is actually removed from system, I open the wordpad program and try to select the Roman font. The result is Roman is still in the listbox.

So anybody can tell me how to programly remove the specific system font from my local box? Thanks in advance!

RemoveFontResouce function in MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_1m3p.asp



Thanks a lot!
Bo
AnswerRe: How to programly remove a system font Pin
progload13-Jun-06 19:01
progload13-Jun-06 19:01 
GeneralRe: How to programly remove a system font Pin
BoHuang13-Jun-06 19:14
BoHuang13-Jun-06 19:14 
GeneralRe: How to programly remove a system font Pin
progload13-Jun-06 19:31
progload13-Jun-06 19:31 
GeneralRe: How to programly remove a system font Pin
BoHuang13-Jun-06 19:56
BoHuang13-Jun-06 19:56 
AnswerRe: How to programly remove a system font Pin
Mekong River14-Jun-06 15:39
Mekong River14-Jun-06 15:39 
GeneralRe: How to programly remove a system font Pin
BoHuang14-Jun-06 16:47
BoHuang14-Jun-06 16:47 
GeneralRe: How to programly remove a system font Pin
Mekong River14-Jun-06 17:23
Mekong River14-Jun-06 17:23 
GeneralRe: How to programly remove a system font Pin
BoHuang14-Jun-06 17:29
BoHuang14-Jun-06 17:29 
GeneralRe: How to programly remove a system font Pin
Mekong River14-Jun-06 17:55
Mekong River14-Jun-06 17:55 
GeneralRe: How to programly remove a system font Pin
BoHuang14-Jun-06 19:37
BoHuang14-Jun-06 19:37 
QuestionWhere has the CDumpContext gone? [modified] Pin
ClockDivider12-Jun-06 1:28
ClockDivider12-Jun-06 1:28 
AnswerRe: Where has the CDumpContext gone? Pin
Mekong River12-Jun-06 15:00
Mekong River12-Jun-06 15:00 
Questionmemory error Pin
illusionFinder11-Jun-06 23:16
illusionFinder11-Jun-06 23:16 
AnswerRe: memory error Pin
Zakaria Butskhrikdize12-Jun-06 0:44
Zakaria Butskhrikdize12-Jun-06 0:44 
AnswerRe: memory error Pin
Mekong River12-Jun-06 15:04
Mekong River12-Jun-06 15:04 
GeneralRe: memory error Pin
toxcct13-Jun-06 23:01
toxcct13-Jun-06 23:01 
GeneralRe: memory error Pin
Mekong River14-Jun-06 15:28
Mekong River14-Jun-06 15:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.