- Implement GdiIsMetaFileDC and GdiIsMetaPrintDC.

svn path=/trunk/; revision=39835
This commit is contained in:
James Tabor 2009-03-01 19:37:52 +00:00
parent e81627a11d
commit a784e30920
2 changed files with 38 additions and 10 deletions

View File

@ -1097,27 +1097,54 @@ GdiDrawStream(HDC dc, ULONG l, VOID *v)
}
/*
* @unimplemented
* @implemented
*/
BOOL
WINAPI
GdiIsMetaFileDC(HDC hdc)
GdiIsMetaFileDC(HDC hDC)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC)
{
if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_METADC)
return TRUE;
else
{
PLDC pLDC = GdiGetLDC(hDC);
if ( !pLDC )
{
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
}
if ( pLDC->iType == LDC_EMFLDC) return TRUE;
}
}
return FALSE;
}
/*
* @unimplemented
* @implemented
*/
BOOL
WINAPI
GdiIsMetaPrintDC(HDC hdc)
GdiIsMetaPrintDC(HDC hDC)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC)
{
if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_METADC)
return FALSE;
else
{
PLDC pLDC = GdiGetLDC(hDC);
if ( !pLDC )
{
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
}
if ( pLDC->Flags & LDC_META_PRINT) return TRUE;
}
}
return FALSE;
}
/*

View File

@ -178,6 +178,7 @@
#define LDC_INIT_PAGE 0x00000080
#define LDC_CLOCKWISE 0x00002000
#define LDC_KILL_DOCUMENT 0x00010000
#define LDC_META_PRINT 0x00020000
#define LDC_DEVCAPS 0x02000000
/* DC_ATTR Xform Flags */