Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Font Selection dialog
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00509989
Message ID:
00510005
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
Hey Evan,
I don't think there are any WinAPI functions that do this. Basically, when you get down to that level, it's roll your time using EnumFontFamiliesEx and EnumFontFamExProc. The first runs through all the installed fonts on your system. The second is a call back function run for every font found by the Enum function. It receives a pointer to a font structure and you can do anything you want at that time (i.e. populate a listbox with some of the information).

Another suggestion is to use the ShowFont() method of the Common Dialog Control. You could stick the control on a form and initiate its methods (ShowPrinters, ShowFont, ShowColor).

HTH.

>Hi Larry,
>
>They're one option (BG).
>
>The upshot of this is that I need to show a couple of choices to some folks here. GetFont() and GetColor() are one offering; I was hoping to show the WinAPI dialog(s) for comparison purposes.
>
>Thanks,
>Evan
>
>
>>>Hi gang,
>>>
>>>Anybody know off the top of their head which Win32 API library/function to call for the Font Selection dialog under NT 4?
>>>
>>>Thanks,
>>
>>How about the non-WinAPI internal VFP function, GetFont()? Will this do?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform