[DDK]: Merge 46183 from header-branch.
[reactos.git] / rosapps / templates / mdi / main.h
1 /*
2 * ReactOS Application
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 #include "../../lib/ros2win/ros2win.h"
37
38 ////////////////////////////////////////////////////////////////////////////////
39
40 #define SPLIT_WIDTH 5
41 #define MAX_LOADSTRING 100
42 //#define BUFFER_LEN 1024
43 #define _NO_EXTENSIONS
44
45 typedef struct {
46 HWND hWnd;
47 HWND hLeftWnd;
48 HWND hRightWnd;
49 int nFocusPanel; // 0: left 1: right
50 int nSplitPos;
51 WINDOWPLACEMENT pos;
52 TCHAR szPath[MAX_PATH];
53 } ChildWnd;
54
55 void UpdateStatusBar(void);
56
57 ////////////////////////////////////////////////////////////////////////////////
58 // Global Variables:
59
60 extern HINSTANCE hInst;
61 extern HACCEL hAccel;
62 extern HWND hFrameWnd;
63 extern HMENU hMenuFrame;
64 extern HWND hMDIClient;
65 extern HWND hStatusBar;
66 extern HWND hToolBar;
67 extern HFONT hFont;
68
69
70 extern TCHAR szTitle[];
71 extern TCHAR szFrameClass[];
72 extern TCHAR szChildClass[];
73
74
75
76 #ifdef __cplusplus
77 };
78 #endif
79
80 #endif // __MAIN_H__