Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!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: <106580046@hpcvlx.HP.COM> Date: 23 Jun 89 16:28:24 GMT References: <3196@watale.waterloo.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 14 > I'm using SetMapMode(hDC, MM_ANISOTROPIC) along with SetWindowExt() and > SetViewPortExt() to transform window coordinates into constant units > (I want 1000, 1000 to always be the bottom right corner). This works > fine if I do a SetMapMode() etc. every time I redraw a window. Damn right. When you call GetDC (or BeginPaint, which does the same), the DC you get is initialized to the default values. (Read ANY of the Windows programming books for this.) The only exception is if you have CS_OWNDC or CS_CLASSDC in the class registration. --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems