CEdit& edit = GetEditCtrl() //定义指向视图的Cedit控件 if (m_Font.m_hObject == NULL) { m_Font.CreatePointFont(120,"Fixedsys") } if (m_Font.m_hObject != NULL) edit.SetFont (&m_Font) edit.SetTabStops (16)