Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form's Caption_Assign
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00424701
Message ID:
00425425
Vues:
12
>>>AFAIK, title bar font is not something, that we can change for the particular form. It's Windows settings (right click on your Desktop, Properties, Appearance)...
>>
>>Right, but I was wondering what's the use the font properties in the form PEM list.
>
> These are for Print method of form or for '?' command. Form caption (Window title bar' get its parameters from Windows general appearance, defined in the Control Panel\Display\Appearance. What is needed is just to find a way to get these parameters.

Ok, I even found this code snippet. Still it doesn't clear for me, how can I retrieve necessary information in my VFP application:

The following code snippet shows how to obtain a handle to the title bar font under Windows 95 or Windows NT 4.0:
NONCLIENTMETRICS ncm;
memset(&ncm, 0, _
sizeof(ncm));
ncm.cbSize = sizeof(ncm);
SystemParametersInfo( _
SPI_GETNONCLIENTMETRICS,
0, &ncm, 0);
//Get caption bar
//font handle.
hFontConsole = CreateFontIndirect( _
&ncm.lfCaptionFont);
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform