How to get a LOGFONT from an HFONT

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I am using some COM interface to create some HFONT.
Trouble is, the font created with this COM interface should be release with
this COM intrface.
And I don't see how I could make it work nicely with my ManagedC++ wrapper.

The solution I though of is:
when the COM interface create this reference I "clone" it and release it
immediately, and I could hgo on my business with this "clone"

So...
is there anyway to clone an HFONT?
 
Lloyd Dupont said:
So...
is there anyway to clone an HFONT?

Check the docs for GetObject() if your question is as in the subject line.

Regards,
Will
 
Back
Top