I had a wired error while using PlayEnhMetaFile with a clipping region. Working fine under Win95/NT/2000, but with ME
I had the effect, that after some calls the function draws nothing, but returns success. After some more calls, GDI and Windows crashes.

A little bit confused, I looked into the Win95 implementation of
PlayEnhMetaFile and saw the usage of "SaveDC" and "RestoreDC".

I added this to my code - and now no more problems with ME.
Did somebody had a similar effect?
What for is the "SaveDC" and "RestoreDC" pair?
Posted on 2001-10-01 07:37:50 by beaster