ReactOS
0.4.16-dev-319-g6cf4263
registry.h
Go to the documentation of this file.
1
/*
2
* PROJECT: PAINT for ReactOS
3
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
4
* PURPOSE: Offering functions dealing with registry values
5
* COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
6
*/
7
8
#pragma once
9
10
#define MAX_RECENT_FILES 4
11
12
class
RegistrySettings
13
{
14
private
:
15
void
LoadPresets
(
INT
nCmdShow);
16
17
public
:
18
DWORD
BMPHeight
;
19
DWORD
BMPWidth
;
20
DWORD
GridExtent
;
21
DWORD
NoStretching
;
22
DWORD
ShowThumbnail
;
23
DWORD
SnapToGrid
;
24
DWORD
ThumbHeight
;
25
DWORD
ThumbWidth
;
26
DWORD
ThumbXPos
;
27
DWORD
ThumbYPos
;
28
DWORD
UnitSetting
;
29
WINDOWPLACEMENT
WindowPlacement
;
30
31
CStringW
strFiles
[
MAX_RECENT_FILES
];
32
33
CStringW
strFontName
;
34
DWORD
PointSize
;
35
DWORD
Bold
;
36
DWORD
Italic
;
37
DWORD
Underline
;
38
DWORD
CharSet
;
39
DWORD
FontsPositionX
;
40
DWORD
FontsPositionY
;
41
DWORD
ShowTextTool
;
42
DWORD
ShowStatusBar
;
43
DWORD
ShowPalette
;
44
DWORD
ShowToolBox
;
45
DWORD
Bar1ID
;
46
DWORD
Bar2ID
;
47
48
// Values for Bar1ID.
49
// I think these values are Win2k3 mspaint compatible but sometimes not working...
50
#define BAR1ID_TOP 0x0000e81b
51
#define BAR1ID_BOTTOM 0x0000e81e
52
53
// Values for Bar2ID.
54
// I think these values are Win2k3 mspaint compatible but sometimes not working...
55
#define BAR2ID_LEFT 0x0000e81c
56
#define BAR2ID_RIGHT 0x0000e81d
57
58
enum
WallpaperStyle
{
59
TILED
,
60
CENTERED
,
61
STRETCHED
62
};
63
64
static
void
SetWallpaper
(
LPCWSTR
szFileName,
WallpaperStyle
style
);
65
66
void
Load
(
INT
nCmdShow);
67
void
Store
();
68
void
SetMostRecentFile
(
LPCWSTR
szPathName);
69
};
style
Arabic default style
Definition:
afstyles.h:94
MAX_RECENT_FILES
#define MAX_RECENT_FILES
Definition:
registry.h:10
RegistrySettings
Definition:
registry.h:13
RegistrySettings::PointSize
DWORD PointSize
Definition:
registry.h:34
RegistrySettings::UnitSetting
DWORD UnitSetting
Definition:
registry.h:28
RegistrySettings::ShowTextTool
DWORD ShowTextTool
Definition:
registry.h:41
RegistrySettings::ThumbXPos
DWORD ThumbXPos
Definition:
registry.h:26
RegistrySettings::GridExtent
DWORD GridExtent
Definition:
registry.h:20
RegistrySettings::ShowToolBox
DWORD ShowToolBox
Definition:
registry.h:44
RegistrySettings::BMPWidth
DWORD BMPWidth
Definition:
registry.h:19
RegistrySettings::Bar1ID
DWORD Bar1ID
Definition:
registry.h:45
RegistrySettings::FontsPositionY
DWORD FontsPositionY
Definition:
registry.h:40
RegistrySettings::ShowPalette
DWORD ShowPalette
Definition:
registry.h:43
RegistrySettings::ThumbYPos
DWORD ThumbYPos
Definition:
registry.h:27
RegistrySettings::ThumbWidth
DWORD ThumbWidth
Definition:
registry.h:25
RegistrySettings::FontsPositionX
DWORD FontsPositionX
Definition:
registry.h:39
RegistrySettings::SetMostRecentFile
void SetMostRecentFile(LPCWSTR szPathName)
Definition:
registry.cpp:277
RegistrySettings::ShowThumbnail
DWORD ShowThumbnail
Definition:
registry.h:22
RegistrySettings::WallpaperStyle
WallpaperStyle
Definition:
registry.h:58
RegistrySettings::STRETCHED
@ STRETCHED
Definition:
registry.h:61
RegistrySettings::TILED
@ TILED
Definition:
registry.h:59
RegistrySettings::CENTERED
@ CENTERED
Definition:
registry.h:60
RegistrySettings::Bar2ID
DWORD Bar2ID
Definition:
registry.h:46
RegistrySettings::Bold
DWORD Bold
Definition:
registry.h:35
RegistrySettings::Underline
DWORD Underline
Definition:
registry.h:37
RegistrySettings::ShowStatusBar
DWORD ShowStatusBar
Definition:
registry.h:42
RegistrySettings::NoStretching
DWORD NoStretching
Definition:
registry.h:21
RegistrySettings::strFiles
CStringW strFiles[MAX_RECENT_FILES]
Definition:
registry.h:31
RegistrySettings::LoadPresets
void LoadPresets(INT nCmdShow)
Definition:
registry.cpp:76
RegistrySettings::SnapToGrid
DWORD SnapToGrid
Definition:
registry.h:23
RegistrySettings::WindowPlacement
WINDOWPLACEMENT WindowPlacement
Definition:
registry.h:29
RegistrySettings::CharSet
DWORD CharSet
Definition:
registry.h:38
RegistrySettings::Load
void Load(INT nCmdShow)
Definition:
registry.cpp:115
RegistrySettings::BMPHeight
DWORD BMPHeight
Definition:
registry.h:18
RegistrySettings::ThumbHeight
DWORD ThumbHeight
Definition:
registry.h:24
RegistrySettings::strFontName
CStringW strFontName
Definition:
registry.h:33
RegistrySettings::SetWallpaper
static void SetWallpaper(LPCWSTR szFileName, WallpaperStyle style)
Definition:
registry.cpp:39
RegistrySettings::Italic
DWORD Italic
Definition:
registry.h:36
RegistrySettings::Store
void Store()
Definition:
registry.cpp:199
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
_WINDOWPLACEMENT
Definition:
winuser.h:3292
INT
int32_t INT
Definition:
typedefs.h:58
LPCWSTR
const WCHAR * LPCWSTR
Definition:
xmlstorage.h:185
base
applications
mspaint
registry.h
Generated on Wed Dec 4 2024 06:14:34 for ReactOS by
1.9.6