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:
00425415
Vues:
19
>>>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.

Quick search MSDN online showed me, that I have to use SystemParametersInfo() function and pass this structure:
Honestly, I have no idea, what does mean UINT or LOGFONT. Could you help me here?

typedef struct tagNONCLIENTMETRICS {
UINT cbSize;
int iBorderWidth;
int iScrollWidth;
int iScrollHeight;
int iCaptionWidth;
int iCaptionHeight;
LOGFONT lfCaptionFont;
int iSmCaptionWidth;
int iSmCaptionHeight;
LOGFONT lfSmCaptionFont;
int iMenuWidth;
int iMenuHeight;
LOGFONT lfMenuFont;
LOGFONT lfStatusFont;
LOGFONT lfMessageFont;
} NONCLIENTMETRICS, *LPNONCLIENTMETRICS;
Members
cbSize
Specifies the size of the structure, in bytes.
iBorderWidth
Specifies the thickness, in pixels, of the sizing border.
iScrollWidth
Specifies the width, in pixels, of a standard vertical scroll bar.
iScrollHeight
Specifies the height, in pixels, of a standard horizontal scroll bar.
iCaptionWidth
Specifies the width, in pixels, of caption buttons.
iCaptionHeight
Specifies the height, in pixels, of caption buttons.
lfCaptionFont
Contains information about the caption font.
iSmCaptionWidth
Specifies the width, in pixels, of small caption buttons.
iSmCaptionHeight
Specifies the height, in pixels, of small captions.
lfSmCaptionFont
Contains information about the small caption font.
iMenuWidth
Specifies the width, in pixels, of menu-bar buttons.
iMenuHeight
Specifies the height, in pixels, of a menu bar.
lfMenuFont
Contains information about the font used in menu bars.
lfStatusFont
Contains information about the font used in status bars and tooltips.
lfMessageFont
Contains information about the font used in message boxes
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