mfc listcontrol control changes font size

LOGFONT   logfont;//It's better to make class members, global variables, static members   CFont   *pfont1   =   m_List.GetFont();   pfont1->GetLogFont(   &logfont   );   logfont.lfHeight   =logfont.lfHeight   *   3;   //You can modify it here The height ratio of the  font logfont.lfWidth   =   logfont.lfWidth   *   3;   //Here you can modify the width ratio of the font  static   CFont   font1;   font1.CreateFontIndirect(&logfont);   m_List.SetFont(&font1);     
             
           
             
                   
           
       
       

    font1.Detach();


Reprinted from: http://blog.csdn.net/syytem004/article/details/46712253

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325865831&siteId=291194637