2015-05-08 16:02:36 +00:00
|
|
|
/*
|
2023-06-23 11:04:32 +00:00
|
|
|
* PROJECT: PAINT for ReactOS
|
|
|
|
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
|
|
|
|
* PURPOSE: Offering functions dealing with registry values
|
2023-06-27 18:22:21 +00:00
|
|
|
* COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
|
2015-05-08 16:02:36 +00:00
|
|
|
*/
|
|
|
|
|
2017-12-09 12:36:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-16 22:28:01 +00:00
|
|
|
#define MAX_RECENT_FILES 4
|
|
|
|
|
2015-08-16 19:52:37 +00:00
|
|
|
class RegistrySettings
|
|
|
|
{
|
|
|
|
private:
|
2023-03-16 22:26:44 +00:00
|
|
|
void LoadPresets(INT nCmdShow);
|
2015-08-16 19:52:37 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
DWORD BMPHeight;
|
|
|
|
DWORD BMPWidth;
|
|
|
|
DWORD GridExtent;
|
|
|
|
DWORD NoStretching;
|
|
|
|
DWORD ShowThumbnail;
|
|
|
|
DWORD SnapToGrid;
|
|
|
|
DWORD ThumbHeight;
|
|
|
|
DWORD ThumbWidth;
|
|
|
|
DWORD ThumbXPos;
|
|
|
|
DWORD ThumbYPos;
|
|
|
|
DWORD UnitSetting;
|
|
|
|
WINDOWPLACEMENT WindowPlacement;
|
|
|
|
|
2023-11-04 10:25:45 +00:00
|
|
|
CStringW strFiles[MAX_RECENT_FILES];
|
2016-09-26 19:53:42 +00:00
|
|
|
|
2023-11-04 10:25:45 +00:00
|
|
|
CStringW strFontName;
|
2022-01-05 07:26:05 +00:00
|
|
|
DWORD PointSize;
|
|
|
|
DWORD Bold;
|
|
|
|
DWORD Italic;
|
|
|
|
DWORD Underline;
|
|
|
|
DWORD CharSet;
|
|
|
|
DWORD FontsPositionX;
|
|
|
|
DWORD FontsPositionY;
|
|
|
|
DWORD ShowTextTool;
|
2023-03-11 02:41:52 +00:00
|
|
|
DWORD ShowStatusBar;
|
2023-03-18 08:12:28 +00:00
|
|
|
DWORD ShowPalette;
|
2023-03-18 08:19:56 +00:00
|
|
|
DWORD ShowToolBox;
|
2023-04-04 10:06:06 +00:00
|
|
|
DWORD Bar1ID;
|
2023-04-03 05:34:56 +00:00
|
|
|
DWORD Bar2ID;
|
|
|
|
|
2023-04-04 10:06:06 +00:00
|
|
|
// Values for Bar1ID.
|
|
|
|
// I think these values are Win2k3 mspaint compatible but sometimes not working...
|
|
|
|
#define BAR1ID_TOP 0x0000e81b
|
|
|
|
#define BAR1ID_BOTTOM 0x0000e81e
|
|
|
|
|
2023-04-03 05:34:56 +00:00
|
|
|
// Values for Bar2ID.
|
|
|
|
// I think these values are Win2k3 mspaint compatible but sometimes not working...
|
|
|
|
#define BAR2ID_LEFT 0x0000e81c
|
|
|
|
#define BAR2ID_RIGHT 0x0000e81d
|
2022-01-05 07:26:05 +00:00
|
|
|
|
2016-10-28 19:48:25 +00:00
|
|
|
enum WallpaperStyle {
|
|
|
|
TILED,
|
|
|
|
CENTERED,
|
|
|
|
STRETCHED
|
|
|
|
};
|
|
|
|
|
2023-11-04 10:25:45 +00:00
|
|
|
static void SetWallpaper(LPCWSTR szFileName, WallpaperStyle style);
|
2015-08-16 19:52:37 +00:00
|
|
|
|
2023-03-16 22:26:44 +00:00
|
|
|
void Load(INT nCmdShow);
|
2015-08-16 19:52:37 +00:00
|
|
|
void Store();
|
2023-11-04 10:25:45 +00:00
|
|
|
void SetMostRecentFile(LPCWSTR szPathName);
|
2015-08-16 19:52:37 +00:00
|
|
|
};
|