Click here to Skip to main content
16,006,594 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to do serial numbers and installation? Pin
Paul Riley5-Jan-03 4:00
Paul Riley5-Jan-03 4:00 
AnswerRe: How to do serial numbers and installation? Pin
Paul Ingles5-Jan-03 8:29
Paul Ingles5-Jan-03 8:29 
AnswerRe: How to do serial numbers and installation? Pin
jtmtv185-Jan-03 12:29
jtmtv185-Jan-03 12:29 
Generaladding images too context menu Pin
jtmtv184-Jan-03 12:29
jtmtv184-Jan-03 12:29 
GeneralRe: adding images too context menu Pin
Stephane Rodriguez.4-Jan-03 12:40
Stephane Rodriguez.4-Jan-03 12:40 
GeneralFocus Pin
Wizard_014-Jan-03 9:22
Wizard_014-Jan-03 9:22 
GeneralRe: Focus Pin
Stephane Rodriguez.4-Jan-03 9:32
Stephane Rodriguez.4-Jan-03 9:32 
Generalenumfontfamilies , dont work (?) Pin
Roger Alsing4-Jan-03 7:48
Roger Alsing4-Jan-03 7:48 
this is what i have:

private void button1_Click(object sender, System.EventArgs e)
{
IntPtr hdc=GDI.GetDC (this.listBox1.Handle);
GDI.FONTENUMPROC callback=new GDI.FONTENUMPROC (this.CallbackFunc);
GDI.EnumFontFamilies (hdc,null,callback,0);
GDI.ReleaseDC (this.listBox1.Handle ,hdc);
}

private int CallbackFunc (GDI.GDILogFont f , GDI.GDITextMetric t,Int64 DWType,Int64 LParam)
{
listBox1.Items.Add(f.lfFaceName);
return 1;
}


the api calls and logfont/textmetrics structs are also done.
but what happends when i run this code is that i only get ONE font , called "System"

why cant i enumerate all the fonts?
i know i can use the installedfonts collection in system.drawing.text , but that will not return any bitmap fonts (which i use in my app since im wrapping lots of gdi32 crap)



any ideas why this dont work correctly?

//Roger
GeneralRe: enumfontfamilies , dont work (?) Pin
Stephane Rodriguez.4-Jan-03 9:38
Stephane Rodriguez.4-Jan-03 9:38 
GeneralRe: enumfontfamilies , dont work (?) Pin
Roger Alsing4-Jan-03 21:43
Roger Alsing4-Jan-03 21:43 
GeneralC# Sockets Pin
-G-4-Jan-03 6:43
-G-4-Jan-03 6:43 
GeneralRe: C# Sockets Pin
Stephane Rodriguez.4-Jan-03 9:57
Stephane Rodriguez.4-Jan-03 9:57 
GeneralRe: C# Sockets Pin
-G-6-Jan-03 5:33
-G-6-Jan-03 5:33 
GeneralFind all the computer in the domain Pin
doso4-Jan-03 2:44
doso4-Jan-03 2:44 
GeneralRe: Find all the computer in the domain Pin
Heath Stewart4-Jan-03 7:38
protectorHeath Stewart4-Jan-03 7:38 
GeneralRe: Find all the computer in the domain Pin
Anonymous5-Jan-03 4:04
Anonymous5-Jan-03 4:04 
GeneralRe: Find all the computer in the domain Pin
Heath Stewart5-Jan-03 8:34
protectorHeath Stewart5-Jan-03 8:34 
GeneralRe: Find all the computer in the domain Pin
Rob Graham4-Jan-03 8:48
Rob Graham4-Jan-03 8:48 
Questionhow to know which window is clicked? Pin
fretre3-Jan-03 17:49
fretre3-Jan-03 17:49 
AnswerRe: how to know which window is clicked? Pin
Stephane Rodriguez.3-Jan-03 19:27
Stephane Rodriguez.3-Jan-03 19:27 
GeneralAdding to the Visual Studio View Menu Pin
WizardOfPeyton3-Jan-03 13:22
WizardOfPeyton3-Jan-03 13:22 
GeneralRe: Adding to the Visual Studio View Menu Pin
Stephane Rodriguez.3-Jan-03 22:57
Stephane Rodriguez.3-Jan-03 22:57 
QuestionCode guidline / code convention / naming convention for C#??? Pin
gicio3-Jan-03 11:32
gicio3-Jan-03 11:32 
AnswerRe: Code guidline / code convention / naming convention for C#??? Pin
Michael P Butler3-Jan-03 11:43
Michael P Butler3-Jan-03 11:43 
AnswerRe: Code guidline / code convention / naming convention for C#??? Pin
kaschimer3-Jan-03 11:47
kaschimer3-Jan-03 11:47 

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.