branch update for HEAD-2003050101
[reactos.git] / lib / user32 / windows / paint.c
index b2df394..059ff60 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <windows.h>
 #include <user32.h>
+#define NDEBUG
 #include <debug.h>
 
 /* FUNCTIONS *****************************************************************/
@@ -84,7 +85,7 @@ InvalidateRect(
   CONST RECT *lpRect,
   WINBOOL bErase)
 {
-  return FALSE;
+  return NtUserInvalidateRect( hWnd, lpRect, bErase );
 }
 
 WINBOOL
@@ -94,8 +95,9 @@ InvalidateRgn(
   HRGN hRgn,
   WINBOOL bErase)
 {
-  return FALSE;
+  return NtUserInvalidateRgn( hWnd, hRgn, bErase );
 }
+
 WINBOOL
 STDCALL
 RedrawWindow(
@@ -104,8 +106,17 @@ RedrawWindow(
   HRGN hrgnUpdate,
   UINT flags)
 {
-  return FALSE;
+  NTSTATUS Status;
+
+  Status = NtUserRedrawWindow(hWnd, lprcUpdate, hrgnUpdate, flags);
+  if (! NT_SUCCESS(Status))
+    {
+    SetLastError(RtlNtStatusToDosError(Status));
+    }
+
+  return NT_SUCCESS(Status);
 }
+
 WINBOOL
 STDCALL
 ScrollDC(
@@ -133,7 +144,7 @@ STDCALL
 UpdateWindow(
   HWND hWnd)
 {
-  return FALSE;
+  return NtUserUpdateWindow( hWnd );
 }
 WINBOOL
 STDCALL