> 
> 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 it is a dialog, it is using the system font default for all
controls in that dialog, so it does not do any font destroys at all. 
This is why Sheri's original version leaked resources, I believe.

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).

Reply via email to