How to get a LOGFONT from an HFONT

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?
 
W

William DePalo [MVP VC++]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top