Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Printing

From: greggirwin:mindspring at: 12-Sep-2003 15:04

Hi Elan, E> hdcEMF = CreateEnhMetaFile(NULL, NULL, NULL, NULL); Right, but then all you have is a DC, so you still have to use other APIs (e.g. DrawTextEx) to render data into that DC, and if you're dealing with text then you're probably going to need to select font objects in and out of it, etc., right? Also, I'm not sure for EMF DCs if using NULL for the reference DC will affect them. Not a problem for rendering to the screen of course. If it does, then you might have to use CreateDC, which leads to DEVCAPS stuff, and so on. Just trying to look at what all would be involved. As soon as you get into GDI stuff you end up going down a lot of little side-paths in my experience. Lots of potential for resource leaks too. -- Gregg