CFontDialog::GetStyleName
선택한 글꼴 스타일 이름을 검색 하려면이 함수를 호출 합니다.
CString GetStyleName( ) const;
반환 값
글꼴 스타일 이름입니다.
예제
// Get the style name of the selected font, if any.
CFontDialog dlg;
dlg.m_cf.Flags |= CF_USESTYLE;
if (dlg.DoModal() == IDOK)
{
CString stylename = dlg.GetStyleName();
TRACE(_T("Style name of the selected font = %s\n"), stylename);
}
요구 사항
헤더: afxdlgs.h