- Add version resource and description string.

- Ensure the message box pops up when you try to configure the screen saver using the context menu.

svn path=/trunk/; revision=25219
This commit is contained in:
Eric Kohl 2006-12-24 14:48:52 +00:00
parent ddd895bf12
commit 36deccc25e
4 changed files with 40 additions and 13 deletions

View file

@ -206,7 +206,7 @@ void InitSaver(HWND hwndParent)
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WndProc;
wc.lpszClassName = APPNAME;
RegisterClass(&wc);
RegisterClass(&wc);
if (hwndParent != 0)
{
@ -268,7 +268,8 @@ int WINAPI WinMain (HINSTANCE hInst,
int iCmdShow)
{
HWND hwndParent;
int chOption;
int chOption;
MSG Message;
hInstance = hInst;
@ -276,19 +277,23 @@ int WINAPI WinMain (HINSTANCE hInst,
switch(chOption)
{
case 's': InitSaver(0); break;
case 'p': InitSaver(hwndParent); break;
case 's':
InitSaver(0);
break;
case 'p':
InitSaver(hwndParent);
break;
case 'c':
default:
MessageBox(0,
_T("Cylinders fractal by unC0Rr.\nSpecial for ReactOS.\n"),
_T("About"),
MB_OK | MB_ICONINFORMATION);
return 0;
default: InitSaver(0);
}
MSG Message;
while (GetMessage(&Message, 0, 0, 0))
DispatchMessage(&Message);

View file

@ -3,13 +3,14 @@
<define name="__REACTOS__" />
<define name="UNICODE" />
<define name="_UNICODE" />
<library>kernel32</library>
<library>user32</library>
<library>gdi32</library>
<library>opengl32</library>
<library>glu32</library>
<library>user32</library>
<library>gdi32</library>
<library>opengl32</library>
<library>glu32</library>
<library>winmm</library>
<file>cylfrac.c</file>
<file>cylfrac.rc</file>
</module>

View file

@ -0,0 +1,19 @@
#include <windows.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "Cylinders fractal ScreenSaver\0"
#define REACTOS_STR_INTERNAL_NAME "cylfrac\0"
#define REACTOS_STR_ORIGINAL_FILENAME "cylfrac.scr\0"
#include <reactos/version.rc>
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE DISCARDABLE
BEGIN
IDS_DESCRIPTION "Cylinders fractal"
END

View file

@ -0,0 +1,2 @@
#define IDS_DESCRIPTION 1