Mainly standardisation of makefiles, now support make install rules and use ros heade...
[reactos.git] / rosapps / regedt32 / main.h
1 /*
2 * ReactOS regedt32
3 *
4 * main.h
5 *
6 * Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #ifndef __MAIN_H__
24 #define __MAIN_H__
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 #if _MSC_VER > 1000
31 #pragma once
32 #endif // _MSC_VER > 1000
33
34 #include "resource.h"
35
36
37 #define STATUS_WINDOW 2001
38 #define TREE_WINDOW 2002
39 #define LIST_WINDOW 2003
40
41 #define MAX_LOADSTRING 100
42 #define SPLIT_WIDTH 5
43 #define MAX_NAME_LEN 500
44
45
46 #define ID_WINDOW_CLOSE 798
47 #define ID_WINDOW_CLOSEALL 799
48
49 #define IDW_FIRST_CHILD 0xC000 //0x200
50
51 ////////////////////////////////////////////////////////////////////////////////
52
53 enum OPTION_FLAGS {
54 OPTIONS_AUTO_REFRESH = 0x01,
55 OPTIONS_READ_ONLY_MODE = 0x02,
56 OPTIONS_CONFIRM_ON_DELETE = 0x04,
57 OPTIONS_SAVE_ON_EXIT = 0x08,
58 OPTIONS_DISPLAY_BINARY_DATA = 0x10,
59 OPTIONS_VIEW_TREE_ONLY = 0x20,
60 OPTIONS_VIEW_DATA_ONLY = 0x40,
61 };
62
63 typedef struct {
64 HWND hWnd;
65 HWND hTreeWnd;
66 HWND hListWnd;
67 int nFocusPanel; // 0: left 1: right
68 int nSplitPos;
69 WINDOWPLACEMENT pos;
70 TCHAR szKeyName[MAX_PATH];
71 HKEY hKey;
72 } ChildWnd;
73
74 ////////////////////////////////////////////////////////////////////////////////
75 // Global Variables:
76 //
77 extern HINSTANCE hInst;
78 extern HACCEL hAccel;
79 extern HWND hFrameWnd;
80 extern HMENU hMenuFrame;
81 extern HWND hMDIClient;
82 extern HWND hStatusBar;
83 //extern HWND hToolBar;
84 extern HFONT hFont;
85 extern enum OPTION_FLAGS Options;
86
87 extern TCHAR szTitle[];
88 extern TCHAR szFrameClass[];
89 extern TCHAR szChildClass[];
90
91 #if __MINGW32_MAJOR_VERSION == 1
92 /*
93 typedef struct tagNMITEMACTIVATE{
94 NMHDR hdr;
95 int iItem;
96 int iSubItem;
97 UINT uNewState;
98 UINT uOldState;
99 UINT uChanged;
100 POINT ptAction;
101 LPARAM lParam;
102 UINT uKeyFlags;
103 } NMITEMACTIVATE, FAR *LPNMITEMACTIVATE;
104 */
105 #endif
106
107 #ifdef __cplusplus
108 };
109 #endif
110
111 #endif // __MAIN_H__