Split window control, listview and treeview moved to child window.
[reactos.git] / rosapps / regedit / main.h
1 /*
2 * ReactOS regedit
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 #define SPLIT_WINDOW 2004
41
42 #define MAX_LOADSTRING 100
43 #define SPLIT_WIDTH 3
44
45 ////////////////////////////////////////////////////////////////////////////////
46 // Global Variables:
47 //
48 extern HINSTANCE hInst;
49 extern HWND hFrameWnd;
50 extern HWND hStatusBar;
51 extern HMENU hMenuFrame;
52
53 extern TCHAR szTitle[];
54 extern TCHAR szFrameClass[];
55 extern TCHAR szChildClass[];
56
57 #ifndef _MSC_VER
58 typedef struct tagNMITEMACTIVATE{
59 NMHDR hdr;
60 int iItem;
61 int iSubItem;
62 UINT uNewState;
63 UINT uOldState;
64 UINT uChanged;
65 POINT ptAction;
66 LPARAM lParam;
67 UINT uKeyFlags;
68 } NMITEMACTIVATE, FAR *LPNMITEMACTIVATE;
69 #endif
70
71 #ifdef __cplusplus
72 };
73 #endif
74
75 #endif // __MAIN_H__