I used to use CS_CLASSDC to set properties at setup time and leave them (things like persistent brushes that I didn't want to recreate in every WM_PAINT). These days I've learned I can cache the brush and forget about the DC. Hmmm. ParentDC seems like a good idea for a child window and I would hope wouldn't mess up PrintWindow.
↧