Article View: comp.windows.ms
Article #240Re: Mapping modes
From: Bill Turner
Date: Fri, 23 Jun 1989 16:28
Date: Fri, 23 Jun 1989 16:28
14 lines
1020 bytes
1020 bytes
> 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
Technical Details
Message-ID:
<106580046@hpcvlx.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturnerReferences:
<3196@watale.waterloo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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