partly implement gdi32 Escape

implemented command ENDDOC: Escape

 

svn path=/trunk/; revision=32636
This commit is contained in:
Magnus Olsen 2008-03-10 00:27:25 +00:00
parent b6b6d6b267
commit fc93cf79dd
2 changed files with 15 additions and 1 deletions

View file

@ -1570,6 +1570,20 @@ Escape(HDC hdc, INT nEscape, INT cbInput, LPCSTR lpvInData, LPVOID lpvOutData)
} }
break; break;
case ENDDOC:
/* Note : Winodws check see if the handle have any user data for DRAFTMODE, FLUSHOUTPUT, SETCOLORTABLE command
* ReactOS copy this behoir to be compatible with windows 2003
*/
if ( (!GdiGetHandleUserData(hObject, (DWORD)Type, (PVOID) &pUserData)) ||
(pUserData == NULL) )
{
GdiSetLastError(ERROR_INVALID_HANDLE);
retValue = FALSE;
}
retValue = EndDoc(hdc);
break;
case GETSCALINGFACTOR: case GETSCALINGFACTOR:
/* Note GETSCALINGFACTOR is outdated have been replace by GetDeviceCaps */ /* Note GETSCALINGFACTOR is outdated have been replace by GetDeviceCaps */
if ( Type == GDI_OBJECT_TYPE_DC ) if ( Type == GDI_OBJECT_TYPE_DC )

View file

@ -43,7 +43,7 @@ int
STDCALL STDCALL
StartDocA( StartDocA(
HDC hdc, HDC hdc,
CONST DOCINFOA *a1 CONST DOCINFOA *lpdi
) )
{ {
UNIMPLEMENTED; UNIMPLEMENTED;