Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Mapping modes Message-ID: <106580047@hpcvlx.HP.COM> Date: 26 Jun 89 18:01:26 GMT References: <3196@watale.waterloo.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 11 > Every time you do a GetDC (or BeginPaint) windows provides you with a DEFAULT > DC. This is done because there is only a total of 5 DCs for the entire system. > (if you do 6 GetDCs without intervening ReleaseDCs your system will appear to > hang!) That means that you have to reload a DC EVERY time you get it and that > includes mapping modes, extents, pens, brushes etc. Actually, it's worse than that, the system shows no effects. What happens is that, after the 5th GetDC, GetDC returns the *SAME* hDC! It doesn't crash the system, but behavior is most strange... --Bill Turner (bturner@hp-pcd.hp.com)