IsMetaFile is an easy check used when porting wine static and listbox.

svn path=/trunk/; revision=29201
This commit is contained in:
James Tabor 2007-09-25 14:42:51 +00:00
parent c338775265
commit 27a27ff89e
2 changed files with 18 additions and 0 deletions

View file

@ -42,3 +42,5 @@
HGDIOBJ STDCALL NtGdiSelectObject(HDC hDC, HGDIOBJ hGDIObj); HGDIOBJ STDCALL NtGdiSelectObject(HDC hDC, HGDIOBJ hGDIObj);
BOOL STDCALL NtGdiPatBlt(HDC hdcDst, INT x, INT y, INT cx, INT cy, DWORD rop4); BOOL STDCALL NtGdiPatBlt(HDC hdcDst, INT x, INT y, INT cx, INT cy, DWORD rop4);
LONG STDCALL GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *); LONG STDCALL GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *);
BOOL FASTCALL IsMetaFile(HDC);

View file

@ -293,6 +293,22 @@ IsGUIThread(
return TRUE; return TRUE;
} }
BOOL
FASTCALL
IsMetaFile(HDC hDc)
{
DWORD Type = GetObjectType((HGDIOBJ) hDc);
switch(Type)
{
case OBJ_METADC:
case OBJ_METAFILE:
case OBJ_ENHMETADC:
case OBJ_ENHMETAFILE:
return TRUE;
}
return FALSE;
}
PUSER_HANDLE_ENTRY PUSER_HANDLE_ENTRY
FASTCALL FASTCALL
GetUser32Handle(HANDLE handle) GetUser32Handle(HANDLE handle)