Path: utzoo!utgpu!watmath!thunder!water!maytag!watvlsi!watale!mims-iris.waterloo.edu!tom From: tom@mims-iris.waterloo.edu (Tom Haapanen) Newsgroups: comp.windows.ms Subject: Mapping modes Message-ID: <3196@watale.waterloo.edu> Date: 22 Jun 89 04:26:16 GMT Sender: daemon@watale.waterloo.edu Reply-To: tom@mims-iris.waterloo.edu (Tom Haapanen) Distribution: na Organization: WATMIMS Research Group, University of Waterloo Lines: 20 Here's another question from a Windows beginner: 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. However, if I only do it when the window is created (WM_CREATE message) it seems that the window extent information disappears after I do something. I've been narrowing it down, but I haven't quite found it: I have no other calls to these functions; the only other thing I can think of is GetDC() and ReleaseDC() doing something to this info. Does anyone have any ideas? If anybody is willing to look at the code, I can mail it to you (it's less than 500 lines). Thanks in advance! \tom haapanen "now, you didn't really expect tom@mims-iris.waterloo.edu my views to have anything to do watmims research group with my employer's, did you?" university of waterloo