Re: CFont.
From: Sam Davis (SamDavis_at_discussions.microsoft.com)
Date: 02/10/05
- Next message: Sam Davis: "Re: CFont."
- Previous message: Guido Franzke: "Re: CBitmapButton::AutoLoad()"
- In reply to: Frank Hickman [MVP]: "Re: CFont."
- Next in thread: Sam Davis: "Re: CFont."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Feb 2005 11:55:02 -0800
We have a CFont object member as part of our AdvancedEdit object. This is our
edit control that is capable of doing multiple data entry options. We do a
CreateIndirectFont in the contstructor of the object. So if we have 25 edit
boxes on the screen I am assuming we have 25 copies of the same font? Now
this application is using some things such as a dynamic dialog switching
routine. We have well over 300 dialogs in the application and switch them out
in a frame window.
"Frank Hickman [MVP]" wrote:
> "Sam Davis" <SamDavis@discussions.microsoft.com> wrote in message
> news:2A0184AA-C02C-4761-A4C0-1513E39EA8C5@microsoft.com...
> > OK... Here it goes. I have a huge application that we created custom
> > buttons,
> > custom edit boxes etc. We have embedded a CFont object so that we can
> > override the Font of these items on a case by case basis. The issue is
> > that
> > when our software loads it can load up to 300 font objects in memory.
> > Anyone
> > know of a way in which i can manipulate the font of the object upon
> > initialization without keeping a CFont object long in the object?
> >
> > Thanks!
>
> Surly you can create your base fonts in the application object and load them
> from there. You don't have 300 different font styles loaded do you?
>
> --
> ============
> Frank Hickman
> Microsoft MVP
> NobleSoft, Inc.
> ============
> Replace the _nosp@m_ with @ to reply.
>
>
>
- Next message: Sam Davis: "Re: CFont."
- Previous message: Guido Franzke: "Re: CBitmapButton::AutoLoad()"
- In reply to: Frank Hickman [MVP]: "Re: CFont."
- Next in thread: Sam Davis: "Re: CFont."
- Messages sorted by: [ date ] [ thread ]