home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3621 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.3 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!ut-emx!kbrooks
  2. From: kbrooks@ut-emx.uucp (kevin brooks)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Displaying metafile
  5. Keywords: MS Windows Metafile Client Window
  6. Message-ID: <84213@ut-emx.uucp>
  7. Date: 23 Nov 92 17:44:49 GMT
  8. Organization: The University of Texas at Austin, Austin, Texas
  9. Lines: 21
  10.  
  11. I need some help with regard to working with metafiles.  I am trying to
  12. output a report that includes fonts and graphics to 3 devices: client window,
  13. default printer, and disk file.  To create the report, I am first writing
  14. the information to a metafile I get from the function CreateMetaFile().
  15.  
  16. The problem that I am encountering is when I try to display it on the
  17. OWL client window.  To display it, I am overloading the TWindow::Paint()
  18. member function.  In this function, I am calling the function PlayMetaFile().
  19. This works fine for shorter metafiles.  But for very long metafiles, when
  20. I have to scroll the client window, it takes a very very long time to 
  21. execute the TWindow::Paint() member function.
  22.  
  23. Is there any way to control the play back of the metafile so that it only
  24. paints the portion that would be visible within the client window?
  25.  
  26. thanks in advance,
  27.  
  28. kevin brooks
  29. kbrooks@emx.utexas.edu
  30.  
  31.  
  32.