CFontDialog::GetWeight
Appelez cette fonction pour extraire le poids de la police sélectionnée.
int GetWeight( ) const;
Valeur de retour
Le poids de la police sélectionnée.
Notes
Pour plus d'informations sur le poids d'une police, consultez CFont::CreateFont.
Exemple
// Get the weight of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
int weight = dlg.GetWeight();
TRACE(_T("Weight of the selected font = %d\n"), weight);
}
Configuration requise
Header: afxdlgs.h