mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +00:00
partly implement gdi32 Escape
implemented command ENDDOC: Escape svn path=/trunk/; revision=32636
This commit is contained in:
parent
b6b6d6b267
commit
fc93cf79dd
2 changed files with 15 additions and 1 deletions
|
@ -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 )
|
||||||
|
|
|
@ -43,7 +43,7 @@ int
|
||||||
STDCALL
|
STDCALL
|
||||||
StartDocA(
|
StartDocA(
|
||||||
HDC hdc,
|
HDC hdc,
|
||||||
CONST DOCINFOA *a1
|
CONST DOCINFOA *lpdi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue