mirror of
https://github.com/reactos/reactos.git
synced 2024-12-25 03:53:36 +08:00
- Implement GdiIsMetaFileDC and GdiIsMetaPrintDC.
svn path=/trunk/; revision=39835
This commit is contained in:
parent
e81627a11d
commit
a784e30920
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user