mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 11:08:51 +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
|
PVOID *UserData
|
||||||
);
|
);
|
||||||
|
|
||||||
|
PLDC
|
||||||
|
GdiGetLDC(HDC hDC);
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
CalculateColorTableSize(
|
CalculateColorTableSize(
|
||||||
|
|
|
@ -71,6 +71,13 @@ BOOL GdiGetHandleUserData(HGDIOBJ hGdiObj, PVOID *UserData)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PLDC GdiGetLDC(HDC hDC)
|
||||||
|
{
|
||||||
|
PDC_ATTR Dc_Attr;
|
||||||
|
if (!GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr))
|
||||||
|
return NULL;
|
||||||
|
return Dc_Attr->pvLDC;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
|
|
Loading…
Reference in a new issue