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     enum WallpaperStyle {
36         TILED,
37         CENTERED,
38         STRETCHED
39     };
40 
41     static void SetWallpaper(LPCTSTR szFileName, WallpaperStyle style);
42 
43     void Load();
44     void Store();
45     void SetMostRecentFile(LPCTSTR szPathName);
46 };
47