mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 23:28:58 +00:00
IsMetaFile is an easy check used when porting wine static and listbox.
svn path=/trunk/; revision=29201
This commit is contained in:
parent
c338775265
commit
27a27ff89e
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue