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/gd…
==============================================================================
--- 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 */
+