Share via


CFontDialog::GetSize

intGetSize()const;

Return Value

The font’s size, in tenths of a point.

Remarks

Call this function to retrieve the size of the selected font.

Example

// Get the size of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   int size = dlg.GetSize();
   TRACE("The size of the selected font = %d\n", size);
}

CFontDialog OverviewClass MembersHierarchy Chart

See Also   CFontDialog::GetWeight, CFontDialog::GetCurrentFont