1 /*
2  * PROJECT:     PAINT for ReactOS
3  * LICENSE:     LGPL
4  * FILE:        base/applications/mspaint/registry.h
5  * PURPOSE:     Offering functions dealing with registry values
6  * PROGRAMMERS: Benedikt Freisen
7  */
8 
9 #pragma once
10 
11 class RegistrySettings
12 {
13 private:
14     void LoadPresets();
15 
16 public:
17     DWORD BMPHeight;
18     DWORD BMPWidth;
19     DWORD GridExtent;
20     DWORD NoStretching;
21     DWORD ShowThumbnail;
22     DWORD SnapToGrid;
23     DWORD ThumbHeight;
24     DWORD ThumbWidth;
25     DWORD ThumbXPos;
26     DWORD ThumbYPos;
27     DWORD UnitSetting;
28     WINDOWPLACEMENT WindowPlacement;
29 
30     CString strFile1;
31     CString strFile2;
32     CString strFile3;
33     CString strFile4;
34 
35     CString strFontName;
36     DWORD PointSize;
37     DWORD Bold;
38     DWORD Italic;
39     DWORD Underline;
40     DWORD CharSet;
41     DWORD FontsPositionX;
42     DWORD FontsPositionY;
43     DWORD ShowTextTool;
44 
45     enum WallpaperStyle {
46         TILED,
47         CENTERED,
48         STRETCHED
49     };
50 
51     static void SetWallpaper(LPCTSTR szFileName, WallpaperStyle style);
52 
53     void Load();
54     void Store();
55     void SetMostRecentFile(LPCTSTR szPathName);
56 };
57