Re: Dynamically sizing Display Fonts
- From: "Rene Pilon" <discussion.microsoft.com>
- Date: Thu, 10 Nov 2005 03:07:58 -0500
I'm not sure if you are saying that you have a memory leak above. If so -
it could be explained by the following:
hOldFont = SelectObject(hDc,hFont); // <- Save previous font's handle
// other code here
SelectObject( hDc, hOldFont ); // restore original font before deleting
your font next line
DeleteObject(hFont);
What I'm getting at - and I'm not sure by the code you posted - are you
saving the previous font's handle from the DC and then restoring it as
above?
Best Regards,
Rene Pilon
.
- Follow-Ups:
- Re: Dynamically sizing Display Fonts
- From: Carla Fong
- Re: Dynamically sizing Display Fonts
- References:
- Dynamically sizing Display Fonts
- From: Carla Fong
- Dynamically sizing Display Fonts
- Prev by Date: Dynamically sizing Display Fonts
- Next by Date: Re: Dynamically sizing Display Fonts
- Previous by thread: Dynamically sizing Display Fonts
- Next by thread: Re: Dynamically sizing Display Fonts
- Index(es):
Relevant Pages
|