mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 03:38:30 +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
4 changed files with 40 additions and 13 deletions
|
@ -269,6 +269,7 @@ int WINAPI WinMain (HINSTANCE hInst,
|
||||||
{
|
{
|
||||||
HWND hwndParent;
|
HWND hwndParent;
|
||||||
int chOption;
|
int chOption;
|
||||||
|
MSG Message;
|
||||||
|
|
||||||
hInstance = hInst;
|
hInstance = hInst;
|
||||||
|
|
||||||
|
@ -276,19 +277,23 @@ int WINAPI WinMain (HINSTANCE hInst,
|
||||||
|
|
||||||
switch(chOption)
|
switch(chOption)
|
||||||
{
|
{
|
||||||
case 's': InitSaver(0); break;
|
case 's':
|
||||||
case 'p': InitSaver(hwndParent); break;
|
InitSaver(0);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'p':
|
||||||
|
InitSaver(hwndParent);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
|
default:
|
||||||
MessageBox(0,
|
MessageBox(0,
|
||||||
_T("Cylinders fractal by unC0Rr.\nSpecial for ReactOS.\n"),
|
_T("Cylinders fractal by unC0Rr.\nSpecial for ReactOS.\n"),
|
||||||
_T("About"),
|
_T("About"),
|
||||||
MB_OK | MB_ICONINFORMATION);
|
MB_OK | MB_ICONINFORMATION);
|
||||||
return 0;
|
return 0;
|
||||||
default: InitSaver(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MSG Message;
|
|
||||||
|
|
||||||
while (GetMessage(&Message, 0, 0, 0))
|
while (GetMessage(&Message, 0, 0, 0))
|
||||||
DispatchMessage(&Message);
|
DispatchMessage(&Message);
|
||||||
|
|
||||||
|
|
|
@ -12,4 +12,5 @@
|
||||||
<library>winmm</library>
|
<library>winmm</library>
|
||||||
|
|
||||||
<file>cylfrac.c</file>
|
<file>cylfrac.c</file>
|
||||||
|
<file>cylfrac.rc</file>
|
||||||
</module>
|
</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…
Add table
Add a link
Reference in a new issue