Monday, December 31, 2007

Set Default font to any custom made MFC control

LOGFONT lf;

int nRet = GetObject(GetStockObject(DEFAULT_GUI_FONT), sizeof(LOGFONT), &lf);

if (nRet)

{

// Set the Default font to the Custom window control

m_hotListCtrl.SetFont(&lf);

}

No comments: