--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "brucexs" <bswitzer@> wrote:
> 
> > If it is a button or other window that PowerPro draws, the font is
> > usually created and kept for the lifetime of the window and destroyed
> > on wm_destroy.  Fonts that go across windows (eg own default font for
> > all bars) are created and destroyed at each reconfigure, I think (I
> > have not checked code).
> 
> ...so it's not a good idea, in dialog.set_font, to attempt to delete
> an HFONT retrieved from a bar with WM_GETFONT (in order to remove old
> font afternreplacing it with a new one); I might be deleting font used
> by all bars.
>

PowerPro keeps the font handles outside of the window and only puts
them in the device context before drawing.  So this is not a good idea
nor do I think it will accomplish anything in general.




Reply via email to