mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
- 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:
parent
ddd895bf12
commit
36deccc25e
|
@ -269,6 +269,7 @@ int WINAPI WinMain (HINSTANCE hInst,
|
|||
{
|
||||
HWND hwndParent;
|
||||
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);
|
||||
|
||||
|
|
|
@ -12,4 +12,5 @@
|
|||
<library>winmm</library>
|
||||
|
||||
<file>cylfrac.c</file>
|
||||
<file>cylfrac.rc</file>
|
||||
</module>
|
||||
|
|
19
reactos/base/applications/screensavers/cylfrac/cylfrac.rc
Normal file
19
reactos/base/applications/screensavers/cylfrac/cylfrac.rc
Normal 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
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
#define IDS_DESCRIPTION 1
|
Loading…
Reference in a new issue