home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!usc!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!csus.edu!netcom.com!whedon
- From: whedon@netcom.com (Bill Whedon)
- Subject: Re: SetViewportExt and Screen Mapping
- Message-ID: <s7gnw-g.whedon@netcom.com>
- Date: Sun, 30 Aug 92 23:41:03 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <92242.153745IO70935@MAINE.MAINE.EDU>
- Lines: 23
-
- In article <92242.153745IO70935@MAINE.MAINE.EDU> IO70935@MAINE.MAINE.EDU writes:
- >I working on an application that requires a real time display for a data acqusi
- >stion program and I need to remap the window. I would like to map the window in
- > a user coordinate system such that one corner is x1,y1 and the other x2,y2. I
- >am looking for any information or examples of how to do this my BC 3.0 Manuals
- >are no help and Microsofts Reference Book little better. Thanks in advance.
-
- In the normal coordinate system in Windows (where you have not specified any
- mapping mode), the upper left corner of your screen is x1 = 0, y1 = 0, and
- the lower right corner depends upon the actual size of the window rectangle.
-
- You can use SetMapMode to move the coordinate system around, and to adjust
- the coordinate system. You use it along with SetWindowExt, SetWindowOrg,
- SetViewportExt, and SetViewportOrg.
-
- Petzold has examples of several ways to set up your window mapping.
- "Programming Windows" by Charles Petzold, Microsoft Press, ISBN 1-55615-264-7
-
- Look up the commands I told you about in the index of this book.
- Good luck,
- Bill Whedon
-
-
-