int GetWeight( ) const;
Return Value
The weight of the selected font.
Remarks
Call this function to retrieve the weight of the selected font. For more information on the weight of a font, see CFont::CreateFont.
Example
// Get the weight of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
int weight = dlg.GetWeight();
TRACE("Weight of the selected font = %d\n", weight);
}