2023-11-24 01:12:37 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: PAINT for ReactOS
|
|
|
|
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
|
|
|
|
* PURPOSE: The precompiled header
|
|
|
|
* COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2015-05-08 16:02:36 +00:00
|
|
|
|
2022-01-22 15:59:12 +00:00
|
|
|
#ifdef NDEBUG
|
|
|
|
#undef DBG
|
|
|
|
#undef _DEBUG
|
|
|
|
#endif
|
|
|
|
|
2015-05-08 16:02:36 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <wingdi.h>
|
2015-07-07 10:42:49 +00:00
|
|
|
#include <tchar.h>
|
|
|
|
#include <atlbase.h>
|
|
|
|
#include <atlcom.h>
|
2016-09-26 19:53:42 +00:00
|
|
|
#include <atlpath.h>
|
|
|
|
#include <atlstr.h>
|
2015-07-07 10:42:49 +00:00
|
|
|
#include <atlwin.h>
|
2023-03-19 01:42:10 +00:00
|
|
|
#include <atltypes.h>
|
2015-05-08 16:02:36 +00:00
|
|
|
#include <windowsx.h>
|
|
|
|
#include <commdlg.h>
|
|
|
|
#include <commctrl.h>
|
|
|
|
#include <stdlib.h>
|
2023-09-26 13:47:23 +00:00
|
|
|
#define _USE_MATH_DEFINES /* for M_PI */
|
|
|
|
#include <math.h>
|
2015-05-08 16:02:36 +00:00
|
|
|
#include <shellapi.h>
|
|
|
|
#include <htmlhelp.h>
|
2023-11-03 20:56:10 +00:00
|
|
|
#include <strsafe.h>
|
2023-11-24 01:12:37 +00:00
|
|
|
#include <ui/CWaitCursor.h>
|
2015-05-08 16:02:36 +00:00
|
|
|
|
2022-01-09 23:50:37 +00:00
|
|
|
#include <debug.h>
|
|
|
|
|
2021-12-28 01:44:56 +00:00
|
|
|
#include "resource.h"
|
2023-03-28 13:31:26 +00:00
|
|
|
#include "common.h"
|
2015-05-08 16:02:36 +00:00
|
|
|
#include "drawing.h"
|
|
|
|
#include "dib.h"
|
2015-08-17 12:03:39 +00:00
|
|
|
#include "fullscreen.h"
|
2015-05-08 16:02:36 +00:00
|
|
|
#include "history.h"
|
2015-07-07 11:02:30 +00:00
|
|
|
#include "miniature.h"
|
2015-07-07 10:42:49 +00:00
|
|
|
#include "palette.h"
|
2015-07-07 11:15:24 +00:00
|
|
|
#include "palettemodel.h"
|
2015-08-16 19:52:37 +00:00
|
|
|
#include "registry.h"
|
2015-07-09 09:48:01 +00:00
|
|
|
#include "selectionmodel.h"
|
2015-07-07 10:42:49 +00:00
|
|
|
#include "sizebox.h"
|
2023-03-19 01:42:10 +00:00
|
|
|
#include "canvas.h"
|
2015-07-07 10:42:49 +00:00
|
|
|
#include "textedit.h"
|
2015-07-07 11:44:50 +00:00
|
|
|
#include "toolbox.h"
|
2015-07-07 10:42:49 +00:00
|
|
|
#include "toolsettings.h"
|
2015-07-07 11:15:24 +00:00
|
|
|
#include "toolsmodel.h"
|
2023-11-23 08:06:32 +00:00
|
|
|
#include "main.h"
|
2022-01-05 07:26:05 +00:00
|
|
|
#include "dialogs.h"
|
2023-11-24 01:12:37 +00:00
|
|
|
#include "atlimagedx.h"
|
|
|
|
|
|
|
|
/* GLOBAL VARIABLES *************************************************/
|
|
|
|
|
|
|
|
extern HINSTANCE g_hinstExe;
|
|
|
|
|
|
|
|
extern WCHAR g_szFileName[MAX_LONG_PATH];
|
|
|
|
extern BOOL g_isAFile;
|
|
|
|
extern BOOL g_imageSaved;
|
|
|
|
extern BOOL g_showGrid;
|
|
|
|
extern BOOL g_askBeforeEnlarging;
|
|
|
|
|
|
|
|
extern CMainWindow mainWindow;
|
|
|
|
|
|
|
|
extern CMirrorRotateDialog mirrorRotateDialog;
|
|
|
|
extern CAttributesDialog attributesDialog;
|
|
|
|
extern CStretchSkewDialog stretchSkewDialog;
|
|
|
|
extern CFontsDialog fontsDialog;
|
|
|
|
|
|
|
|
extern RegistrySettings registrySettings;
|
|
|
|
extern ImageModel imageModel;
|
|
|
|
extern ToolsModel toolsModel;
|
|
|
|
extern SelectionModel selectionModel;
|
|
|
|
extern PaletteModel paletteModel;
|
|
|
|
|
|
|
|
extern HWND g_hStatusBar;
|
|
|
|
extern float g_xDpi;
|
|
|
|
extern float g_yDpi;
|
|
|
|
extern INT g_fileSize;
|
|
|
|
extern SYSTEMTIME g_fileTime;
|
2015-05-08 16:02:36 +00:00
|
|
|
|
2023-11-24 01:12:37 +00:00
|
|
|
extern CFullscreenWindow fullscreenWindow;
|
|
|
|
extern CMiniatureWindow miniature;
|
|
|
|
extern CToolBox toolBoxContainer;
|
|
|
|
extern CToolSettingsWindow toolSettingsWindow;
|
|
|
|
extern CPaletteWindow paletteWindow;
|
|
|
|
extern CCanvasWindow canvasWindow;
|
|
|
|
extern CTextEditWindow textEditWindow;
|