Add a help function for gdi32.

svn path=/trunk/; revision=24905
This commit is contained in:
James Tabor 2006-11-27 21:58:46 +00:00
parent cd70afcfd9
commit 00b0562f90
2 changed files with 10 additions and 0 deletions

View file

@ -108,6 +108,9 @@ GdiGetHandleUserData(
PVOID *UserData
);
PLDC
GdiGetLDC(HDC hDC);
BOOL
WINAPI
CalculateColorTableSize(

View file

@ -71,6 +71,13 @@ BOOL GdiGetHandleUserData(HGDIOBJ hGdiObj, PVOID *UserData)
return FALSE;
}
PLDC GdiGetLDC(HDC hDC)
{
PDC_ATTR Dc_Attr;
if (!GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr))
return NULL;
return Dc_Attr->pvLDC;
}
/*
* @implemented