CFont font; //font.CreatePointFont(240, // Font points in tenths of a point (120 = 12 pt) // "Arial", // Font family // &dc); // CDC for the font font.CreateFontA(18, // nHeight 10, 12, 14, etc. 0, // nWidth 0, // nEscapement 0, // nOrientation FW_BOLD, // nWeight FW_NORMAL, FW_BOLD FALSE, // bItalic FALSE, // bUnderline 0, // cStrikeOut ANSI_CHARSET, // nCharSet OUT_DEFAULT_PRECIS, // nOutPrecision CLIP_DEFAULT_PRECIS, // nClipPrecision DEFAULT_QUALITY, // nQuality DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily _T("Arial")); // lpszFacename // Set text style for "Data File" CWnd* pStatic = GetDlgItem(IDC_STATIC_DDSID); // Get the dialog widgit by its ID pStatic->SetFont(&font); // After setting the font in all the objects you must call these two // functions before exiting the constructor function font.Detach(); // This apparently is needed or the size of font doesn't matter font.DeleteObject(); // Done with the font so delete it.