home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / win32 / 690 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  968 b 

  1. Path: sparky!uunet!gatech!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!samsung!balrog!olympus.ctron.com!patman
  2. From: patman@olympus.ctron.com (Pat Mancuso)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Problems with NT PlayMetaFile
  5. Message-ID: <4846@balrog.ctron.com>
  6. Date: 25 Aug 92 19:00:25 GMT
  7. Sender: usenet@balrog.ctron.com
  8. Reply-To: patman@olympus.ctron.com (Pat Mancuso)
  9. Organization: Cabletron Systems INc.
  10. Lines: 20
  11.  
  12. I am working on an app which contains code like:
  13.  
  14. HDC bar(HMETAFILE hMetafile)
  15. {
  16.   HDC hMFDC = CreateMetaFile(NULL);
  17.  
  18.   PlayMetaFile(hMFDC, hMetafile); 
  19.   return(hMFDC);
  20. }
  21.  
  22. Basically, it's just playing a metafile into another metafile.
  23. I'm doing this as part of some OLE server OnDraw code.
  24. This works fine under 3.1, but fails (PlayMetaFile returns FALSE)
  25. under NT.  The manual says this should work (API Ref vol 2, pg 12)
  26. but so far I can only get it to render to non-metafile DC's.
  27.  
  28. Bug?
  29.  
  30. ---
  31. Pat Mancuso (patman@ctron.com)
  32.