Article View: comp.os.ms-windows.programmer.misc
Article #2203Displaying metafile
From: kevin brooks
Date: Mon, 23 Nov 1992 17:44
Date: Mon, 23 Nov 1992 17:44
19 lines
1319 bytes
1319 bytes
I need some help with regard to working with metafiles. I am trying to output a report that includes fonts and graphics to 3 devices: client window, default printer, and disk file. To create the report, I am first writing the information to a metafile I get from the function CreateMetaFile(). The problem that I am encountering is when I try to display it on the OWL client window. To display it, I am overloading the TWindow::Paint() member function. In this function, I am calling the function PlayMetaFile(). This works fine for shorter metafiles. But for very long metafiles, when I have to scroll the client window, it takes a very very long time to execute the TWindow::Paint() member function. Is there any way to control the play back of the metafile so that it only paints the portion that would be visible within the client window? thanks in advance, kevin brooks kbrooks@emx.utexas.edu
Technical Details
Message-ID:
<84213@ut-emx.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!ut-emx!kbrooksShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!ut-emx!kbrooks From: kbrooks@ut-emx.uucp (kevin brooks) Newsgroups: comp.os.ms-windows.programmer.misc Subject: Displaying metafile Keywords: MS Windows Metafile Client Window Message-ID: <84213@ut-emx.uucp> Date: 23 Nov 92 17:44:49 GMT Organization: The University of Texas at Austin, Austin, Texas Lines: 21