059ff608b32630982b490e3744091fcec6441431
[reactos.git] / lib / user32 / windows / paint.c
1 /*
2  *  ReactOS kernel
3  *  Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 /* $Id$
20  *
21  * PROJECT:         ReactOS user32.dll
22  * FILE:            lib/user32/windows/input.c
23  * PURPOSE:         Input
24  * PROGRAMMER:      Casper S. Hornstrup (chorns@users.sourceforge.net)
25  * UPDATE HISTORY:
26  *      09-05-2001  CSH  Created
27  */
28
29 /* INCLUDES ******************************************************************/
30
31 #include <windows.h>
32 #include <user32.h>
33 #define NDEBUG
34 #include <debug.h>
35
36 /* FUNCTIONS *****************************************************************/
37
38 HDC
39 STDCALL
40 BeginPaint(
41   HWND hwnd,
42   LPPAINTSTRUCT lpPaint)
43 {
44   return NtUserBeginPaint(hwnd, lpPaint);
45 }
46 WINBOOL
47 STDCALL
48 EndPaint(
49   HWND hWnd,
50   CONST PAINTSTRUCT *lpPaint)
51 {
52   return NtUserEndPaint(hWnd, lpPaint);
53 }
54 int
55 STDCALL
56 ExcludeUpdateRgn(
57   HDC hDC,
58   HWND hWnd)
59 {
60   return 0;
61 }
62 WINBOOL
63 STDCALL
64 GetUpdateRect(
65   HWND hWnd,
66   LPRECT lpRect,
67   WINBOOL bErase)
68 {
69   return FALSE;
70 }
71
72 int
73 STDCALL
74 GetUpdateRgn(
75   HWND hWnd,
76   HRGN hRgn,
77   WINBOOL bErase)
78 {
79   return 0;
80 }
81 WINBOOL
82 STDCALL
83 InvalidateRect(
84   HWND hWnd,
85   CONST RECT *lpRect,
86   WINBOOL bErase)
87 {
88   return NtUserInvalidateRect( hWnd, lpRect, bErase );
89 }
90
91 WINBOOL
92 STDCALL
93 InvalidateRgn(
94   HWND hWnd,
95   HRGN hRgn,
96   WINBOOL bErase)
97 {
98   return NtUserInvalidateRgn( hWnd, hRgn, bErase );
99 }
100
101 WINBOOL
102 STDCALL
103 RedrawWindow(
104   HWND hWnd,
105   CONST RECT *lprcUpdate,
106   HRGN hrgnUpdate,
107   UINT flags)
108 {
109   NTSTATUS Status;
110
111   Status = NtUserRedrawWindow(hWnd, lprcUpdate, hrgnUpdate, flags);
112   if (! NT_SUCCESS(Status))
113     {
114     SetLastError(RtlNtStatusToDosError(Status));
115     }
116
117   return NT_SUCCESS(Status);
118 }
119
120 WINBOOL
121 STDCALL
122 ScrollDC(
123   HDC hDC,
124   int dx,
125   int dy,
126   CONST RECT *lprcScroll,
127   CONST RECT *lprcClip,
128   HRGN hrgnUpdate,
129   LPRECT lprcUpdate)
130 {
131   return FALSE;
132 }
133 int
134 STDCALL
135 SetWindowRgn(
136   HWND hWnd,
137   HRGN hRgn,
138   WINBOOL bRedraw)
139 {
140   return 0;
141 }
142 WINBOOL
143 STDCALL
144 UpdateWindow(
145   HWND hWnd)
146 {
147   return NtUserUpdateWindow( hWnd );
148 }
149 WINBOOL
150 STDCALL
151 ValidateRect(
152   HWND hWnd,
153   CONST RECT *lpRect)
154 {
155   return FALSE;
156 }
157 WINBOOL
158 STDCALL
159 ValidateRgn(
160   HWND hWnd,
161   HRGN hRgn)
162 {
163   return FALSE;
164 }
165 int
166 STDCALL
167 GetWindowRgn(
168   HWND hWnd,
169   HRGN hRgn)
170 {
171   return 0;
172 }