Can I Create a CGXFont from a CFont?

If you have a CFont object, let's say myFontObj, you can determine the LOGFONT structure.

   LOGFONT lf;
   myFontObj.GetObject(sizeof(lf), &lf);

and now use this LOGFONT to create a CGXFont

   CGXFont gxfont(lf);

- or -

   gxfont = lf;