OSDN Git Service

Use CFont::CreatePointFont() instead of CFont::CreateFont()
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 25 Jun 2016 11:36:31 +0000 (20:36 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 25 Jun 2016 11:36:31 +0000 (20:36 +0900)
Src/AboutDlg.cpp

index 9844bc4..c4f8a53 100644 (file)
@@ -101,10 +101,7 @@ BOOL CAboutDlg::Impl::OnInitDialog()
 
        m_image.Load(IDR_SPLASH);
 
-       const int fontHeight = -MulDiv(10, CClientDC(this).GetDeviceCaps(LOGPIXELSY), 72);
-       m_font.CreateFont(fontHeight, 0, 0, 0, FW_MEDIUM, FALSE, FALSE,
-               0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
-               DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, _T("Tahoma"));
+       m_font.CreatePointFont(10 * 10, _T("Tahoma"));
 
        SetDlgItemText(IDC_STATIC, m_p->m_info.developers);
        GetDlgItem(IDC_STATIC)->SetFont(&m_font);