mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
29e147beca
- Add DoCreate methods to CFullscreenWindow, CMiniatureWindow, and CMainWindow classes. - Do encapsulation around mainWindow and _tWinMain. - Add GetOpenFileName, GetSaveFileName, and ChooseColor helper methods to CMainWindow class. - Move some code in WinMain into CMainWindow::OnCreate. - Delay creation of CFullscreenWindow and CMiniatureWindow. - Extend ATL CImage class as CImageDx in newly-created atlimagedx.h of mspaint. CORE-18867
58 lines
1.5 KiB
C
58 lines
1.5 KiB
C
/*
|
|
* PROJECT: PAINT for ReactOS
|
|
* LICENSE: LGPL
|
|
* FILE: base/applications/mspaint/globalvar.h
|
|
* PURPOSE: Declaring global variables for later initialization
|
|
* PROGRAMMERS: Benedikt Freisen
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* VARIABLES declared in main.cpp ***********************************/
|
|
|
|
extern BOOL askBeforeEnlarging;
|
|
|
|
extern POINT start;
|
|
extern POINT last;
|
|
|
|
extern HINSTANCE hProgInstance;
|
|
|
|
extern TCHAR filepathname[MAX_LONG_PATH];
|
|
extern BOOL isAFile;
|
|
extern BOOL imageSaved;
|
|
|
|
extern BOOL showGrid;
|
|
|
|
extern CMainWindow mainWindow;
|
|
|
|
/* VARIABLES declared in dialogs.cpp ********************************/
|
|
|
|
extern CMirrorRotateDialog mirrorRotateDialog;
|
|
extern CAttributesDialog attributesDialog;
|
|
extern CStretchSkewDialog stretchSkewDialog;
|
|
extern CFontsDialog fontsDialog;
|
|
|
|
/* VARIABLES declared in the other places ***************************/
|
|
|
|
extern RegistrySettings registrySettings;
|
|
extern ImageModel imageModel;
|
|
extern ToolsModel toolsModel;
|
|
extern SelectionModel selectionModel;
|
|
extern PaletteModel paletteModel;
|
|
|
|
extern HWND hStatusBar;
|
|
extern float g_xDpi;
|
|
extern float g_yDpi;
|
|
extern INT fileSize;
|
|
extern SYSTEMTIME fileTime;
|
|
|
|
extern CFullscreenWindow fullscreenWindow;
|
|
extern CMiniatureWindow miniature;
|
|
extern CToolBox toolBoxContainer;
|
|
extern CToolSettingsWindow toolSettingsWindow;
|
|
extern CPaletteWindow paletteWindow;
|
|
extern CCanvasWindow canvasWindow;
|
|
extern CSelectionWindow selectionWindow;
|
|
extern CImgAreaWindow imageArea;
|
|
extern CTextEditWindow textEditWindow;
|