-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresource.rc
80 lines (61 loc) · 2.59 KB
/
resource.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include <windows.h>
#include <scrnsave.h>
#include "controls.h"
// General settings
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
ID_APP ICON SSMS.ICO
VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,69,0,0
PRODUCTVERSION 0,69,0,0
FILEFLAGSMASK 0x3F
FILEFLAGS 0x0
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE 0x0
{
BLOCK "StringFileInfo"
{
BLOCK "040904B0"
{
VALUE "CompanyName", "Project2100"
VALUE "FileDescription", "Some screens must save Screen Saver"
VALUE "FileVersion", "0.69"
VALUE "InternalName", "ssms"
VALUE "LegalCopyright", "Andrea Proietto (MIT License)"
VALUE "OriginalFilename", "ssms.scr"
VALUE "ProductName", "Some Screens Must Save Screen Saver"
VALUE "ProductVersion", "0.69"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 1200
}
}
// Layout macros
#define DIALOG_WIDTH 200
#define DIALOG_HEIGHT 63
#define LABEL_WIDTH 60
DLG_SCRNSAVECONFIGURE DIALOG 6, 18, DIALOG_WIDTH, DIALOG_HEIGHT
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "How will you save your screen?"
//FONT 8, "MS Shell Dlg"
// AP210523: MS started using Segoe as default since Windos Vista (6.0+?), and it is much nicer to read
// No idea on how to set this at runtime to avoid problems on older versions, but maybe there is a way...?
FONT 8, "Segoe UI"
BEGIN
RTEXT "Sponge level:" LABEL_SPONGE, 6, 8, LABEL_WIDTH, 8
AUTORADIOBUTTON "1" CTRL_SPONGE_LEVEL_1, 70, 8, 20, 8, WS_GROUP
AUTORADIOBUTTON "2" CTRL_SPONGE_LEVEL_2, 90, 8, 20, 8
AUTORADIOBUTTON "3" CTRL_SPONGE_LEVEL_3, 110, 8, 20, 8
//RTEXT "Rainbow speed:" LABEL_COLOUR, 6, 20, LABEL_WIDTH, 8
// TEST
// LISTBOX 1001, 60, 20, 20, 12
// x EDITTEXT 3456, 60, 40, 100, 20, ES_AUTOHSCROLL | ES_READONLY | ES_NUMBER
// x CONTROL "Integer Spinner", 40002, "msctls_updown32", UDS_ALIGNRIGHT | UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_WRAP | UDS_ARROWKEYS, 60, 40, 100, 20
// EDITTEXT CTRL_RAINBOW_SPEED, 70, 20, 30, 12, ES_AUTOHSCROLL | ES_READONLY | ES_NUMBER
// CONTROL "Integer Spinner", 40002, "msctls_updown32", UDS_ALIGNRIGHT | UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_WRAP | UDS_ARROWKEYS, 60, 20, 30, 12
//EDITTEXT CTRL_RAINBOW_SPEED, 70, 20, 30, 12, ES_AUTOHSCROLL | ES_NUMBER
DEFPUSHBUTTON "OK" IDOK, 135, 10, 40, 14
PUSHBUTTON "Cancel" IDCANCEL, 135, 32, 40, 14
END