- Add function for NtUser.

svn path=/trunk/; revision=69819
This commit is contained in:
James Tabor 2015-11-06 13:34:58 +00:00
parent 9022021b6d
commit a13d6bdc93
2 changed files with 16 additions and 0 deletions

View file

@ -179,6 +179,7 @@ int FASTCALL GreSetStretchBltMode(HDC hdc, int iStretchMode);
int FASTCALL GreGetBkMode(HDC);
int FASTCALL GreGetMapMode(HDC);
COLORREF FASTCALL GreGetTextColor(HDC);
COLORREF FASTCALL GreGetBkColor(HDC);
COLORREF FASTCALL IntSetDCBrushColor(HDC,COLORREF);
COLORREF FASTCALL IntSetDCPenColor(HDC,COLORREF);
int FASTCALL GreGetGraphicsMode(HDC);

View file

@ -46,6 +46,21 @@ GreGetBkMode(HDC hdc)
return lBkMode;
}
COLORREF FASTCALL
GreGetBkColor(HDC hdc)
{
PDC dc;
COLORREF crBk;
if (!(dc = DC_LockDc(hdc)))
{
EngSetLastError(ERROR_INVALID_HANDLE);
return CLR_INVALID;
}
crBk = dc->pdcattr->ulBackgroundClr;
DC_UnlockDc(dc);
return crBk;
}
int FASTCALL
GreGetMapMode(HDC hdc)
{