sorry I forget update this file as well
[reactos.git] / rosapps / applications / screensavers / scrnsave / scrnsave.c
1 /*
2 * Copyright 2003 J Brown
3 * Copyright 2006 Eric Kohl
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18 */
19
20 #include <windows.h>
21 #include <scrnsave.h>
22 #include "resource.h"
23
24 LRESULT WINAPI ScreenSaverProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
25 {
26 static HDC hdc;
27 static RECT rc;
28
29 switch(message)
30 {
31 case WM_CREATE:
32 break;
33 case WM_DESTROY:
34 PostQuitMessage(0);
35 break;
36 case WM_ERASEBKGND:
37 hdc = GetDC(hwnd);
38 GetClientRect (hwnd, &rc);
39 FillRect (hdc, &rc, GetStockObject(BLACK_BRUSH));
40 ReleaseDC(hwnd,hdc);
41 break;
42 case WM_PAINT:
43 break;
44 default:
45 return DefScreenSaverProc(hwnd, message, wParam, lParam);
46 }
47 return 0;
48 }
49
50 BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
51 {
52 return FALSE;
53 }
54
55 BOOL WINAPI RegisterDialogClasses(HANDLE hInst)
56 {
57 return TRUE;
58 }