mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
Add a help function for gdi32.
svn path=/trunk/; revision=24905
This commit is contained in:
parent
cd70afcfd9
commit
00b0562f90
2 changed files with 10 additions and 0 deletions
|
@ -108,6 +108,9 @@ GdiGetHandleUserData(
|
|||
PVOID *UserData
|
||||
);
|
||||
|
||||
PLDC
|
||||
GdiGetLDC(HDC hDC);
|
||||
|
||||
BOOL
|
||||
WINAPI
|
||||
CalculateColorTableSize(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue