home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1579 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. 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
  3. From: whedon@netcom.com (Bill Whedon)
  4. Subject: Re: SetViewportExt and Screen Mapping
  5. Message-ID: <s7gnw-g.whedon@netcom.com>
  6. Date: Sun, 30 Aug 92 23:41:03 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <92242.153745IO70935@MAINE.MAINE.EDU>
  9. Lines: 23
  10.  
  11. In article <92242.153745IO70935@MAINE.MAINE.EDU> IO70935@MAINE.MAINE.EDU writes:
  12. >I working on an application that requires a real time display for a data acqusi
  13. >stion program and I need to remap the window. I would like to map the window in
  14. > a user coordinate system such that one corner is x1,y1 and the other x2,y2. I
  15. >am looking for any information or examples of how to do this my BC 3.0 Manuals
  16. >are no help and Microsofts Reference Book little better. Thanks in advance.
  17.  
  18. In the normal coordinate system in Windows (where you have not specified any
  19. mapping mode), the upper left corner of your screen is x1 = 0, y1 = 0, and
  20. the lower right corner depends upon the actual size of the window rectangle.
  21.  
  22. You can use SetMapMode to move the coordinate system around, and to adjust
  23. the coordinate system.  You use it along with SetWindowExt, SetWindowOrg,
  24. SetViewportExt, and SetViewportOrg.  
  25.  
  26. Petzold has examples of several ways to set up your window mapping.
  27. "Programming Windows" by Charles Petzold, Microsoft Press, ISBN 1-55615-264-7
  28.  
  29. Look up the commands I told you about in the index of this book.
  30. Good luck,
  31. Bill Whedon
  32.  
  33.  
  34.