Implement GdiGetDcAttr. Just for convenience / cleaner code.

svn path=/trunk/; revision=50321
This commit is contained in:
Timo Kreuzer 2011-01-08 12:19:23 +00:00
parent 1e3d9c9a96
commit 7cea632244

View file

@ -379,4 +379,14 @@ GdiAllocBatchCommand(
return pHdr;
}
FORCEINLINE
PDC_ATTR
GdiGetDcAttr(HDC hdc)
{
PDC_ATTR pdcattr;
if (!GdiGetHandleUserData((HGDIOBJ)hdc, GDI_OBJECT_TYPE_DC, (PVOID*)&pdcattr)) return NULL;
return pdcattr;
}
/* EOF */