[ros-diffs] [jimtabor] 24828: Add the Enhmetafile and Metafiledc structs.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Sun Nov 26 01:37:41 CET 2006


Author: jimtabor
Date: Sun Nov 26 03:37:40 2006
New Revision: 24828

URL: http://svn.reactos.org/svn/reactos?rev=24828&view=rev
Log:
Add the Enhmetafile and Metafiledc structs.

Modified:
    trunk/reactos/dll/win32/gdi32/include/gdi32p.h

Modified: trunk/reactos/dll/win32/gdi32/include/gdi32p.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/include/gdi32p.h?rev=24828&r1=24827&r2=24828&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/include/gdi32p.h (original)
+++ trunk/reactos/dll/win32/gdi32/include/gdi32p.h Sun Nov 26 03:37:40 2006
@@ -21,6 +21,47 @@
     INT iFunction,
     HANDLE hPageQuery
 );
+
+/* DEFINES *******************************************************************/
+
+#define HANDLE_LIST_INC 20
+
+/* TYPES *********************************************************************/
+
+// Based on wmfapi.h and Wine. This is the DC_ATTR for a MetaDC file.
+typedef struct tagMETAFILEDC {
+  PVOID      pvMetaBuffer;
+  HANDLE     hFile;
+  DWORD      Size;
+  PMETAHEADER mf;
+  UINT       handles_size, cur_handles;
+  HGDIOBJ   *handles;
+
+  // more DC object stuff.
+  HGDIOBJ    Pen;
+  HGDIOBJ    Brush;
+  HGDIOBJ    Palette;
+  HGDIOBJ    Font;
+  // Add more later.
+} METAFILEDC,*PMETAFILEDC;
+
+
+typedef struct tagENHMETAFILE {
+  PVOID      pvMetaBuffer;
+  HANDLE     hFile;      /* Handle for disk based MetaFile */
+  DWORD      Size;
+  PENHMETAHEADER emf;
+  UINT       handles_size, cur_handles;
+  HGDIOBJ   *handles;
+  INT        horzres, vertres;
+  INT        horzsize, vertsize;
+  INT        logpixelsx, logpixelsy;
+  INT        bitspixel;
+  INT        textcaps;
+  INT        rastercaps;
+  INT        technology;
+  INT        planes;
+} ENHMETAFILE,*PENHMETAFILE;
 
 /* FUNCTIONS *****************************************************************/
 
@@ -107,3 +148,4 @@
 UserRealizePalette(HDC hDC);
 
 /* EOF */
+




More information about the Ros-diffs mailing list