--- In [email protected], "brucexs" <bswit...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > I imagine the issue of needing to destroy fonts also exists with the
> > PowerPro Debug window and the other script debugger.
> > 
> > 
> You are correct that fonts need to be destroyed when you are done with
> them.  
> 
> I am pretty sure that closing a window does not automatically destroy
> any fonts associated with that window.

When your code destroys a debug window, bar, button: does it do a 
WM_GETFONT to get the font currenty used, or does it remember an HFONT
for each bar, button, etc and destroy that remembered HFONT.

If the former, it would be safe for a WM_SETFONT from dialog plugin 
to change font, as long as it retrieved existing font before and
deleted it after each change.  Your code would clean up the last HFONT
standing?








Reply via email to