// Use the font which you just created.
CClientDC dc(this);
CFont* def_font = dc.SelectObject(&font);
dc.ExtTextOut(5, 5, ETO_OPAQUE, NULL, _T("Hello"), NULL);
dc.SelectObject(def_font);
// Finished with the font, now delete the font object.
font.DeleteObject();