From: Christian ASTOR on
mity(a)morous.org wrote:

> I could not find any documentation relevant to this problem, so I
> would appreciate if you could share your experiences on the topic.
> Also any knowledge how Microsoft handles this in standard controls
> would be very helpful.

Standard and Common Controls use an internal structure to store all
their properties, in particular the current HTHEME, in order to use
either Theme apis if it's valid or old apis like DrawText(),
DrawFrameControl(), FillRect(), etc in WM_PAINT and WM_PRINTCLIENT