Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / October 2005

Tip: Looking for answers? Try searching our database.

How to get a LOGFONT from an HFONT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 24 Oct 2005 07:41 GMT
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 - 24 Oct 2005 07:53 GMT
Found out!
SelectObject() => GetObject()

Signature

There are 10 kinds of people in this world. Those who understand binary and
those who don't.

>I am using some COM interface to create some HFONT.
> Trouble is, the font created with this COM interface should be release
[quoted text clipped - 8 lines]
> So...
> is there anyway to clone an HFONT?
William DePalo [MVP VC++] - 24 Oct 2005 15:30 GMT
> So...
> is there anyway to clone an HFONT?

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

Regards,
Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.