HDC STDCALL
NtUserGetDC(HWND hWnd)
{
+#if 0
if (!hWnd)
{ // MSDN:
//"hWnd [in] Handle to the window whose DC is to be retrieved.
return NULL;
}
return NtUserGetDCEx(hWnd, NULL, DCX_USESTYLE);
+#endif
+// We have a problem here!
+ return NtUserGetDCEx(hWnd, NULL, NULL == hWnd ? DCX_CACHE | DCX_WINDOW : DCX_USESTYLE);
}
PDCE FASTCALL
if (NULL == Window)
{ // Do the same as GetDC with a NULL.
- Window = UserGetWindowObject(IntGetDesktopWindow());
- if (Window) Wnd = Window->Wnd;
- else
+// Window = UserGetWindowObject(IntGetDesktopWindow());
+// if (Window) Wnd = Window->Wnd;
+// else
Flags &= ~DCX_USESTYLE;
}
else
}
IntGdiDeleteDC(pdce->hDC, TRUE);
-
+
if (pdce->hClipRgn && ! (pdce->DCXFlags & DCX_KEEPCLIPRGN))
{
NtGdiDeleteObject(pdce->hClipRgn);