Added new template multiple document interface application.
[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 * Based on Winefile, Copyright 2000 martin Fuchs <martin-fuchs@gmx.net>
24 */
25
26 #ifndef __MAIN_H__
27 #define __MAIN_H__
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #if _MSC_VER > 1000
34 #pragma once
35 #endif // _MSC_VER > 1000
36
37 #include "resource.h"
38
39 #include "../../lib/ros2win/ros2win.h"
40
41 ////////////////////////////////////////////////////////////////////////////////
42
43 #define SPLIT_WIDTH 5
44 #define MAX_LOADSTRING 100
45 //#define BUFFER_LEN 1024
46 #define _NO_EXTENSIONS
47
48 typedef struct {
49 HWND hWnd;
50 HWND hLeftWnd;
51 HWND hRightWnd;
52 int nFocusPanel; // 0: left 1: right
53 int nSplitPos;
54 WINDOWPLACEMENT pos;
55 TCHAR szPath[MAX_PATH];
56 } ChildWnd;
57
58 void UpdateStatusBar(void);
59
60 ////////////////////////////////////////////////////////////////////////////////
61 // Global Variables:
62
63 extern HINSTANCE hInst;
64 extern HACCEL hAccel;
65 extern HWND hFrameWnd;
66 extern HMENU hMenuFrame;
67 extern HWND hMDIClient;
68 extern HWND hStatusBar;
69 extern HWND hToolBar;
70 extern HFONT hFont;
71
72
73 extern TCHAR szTitle[];
74 extern TCHAR szFrameClass[];
75 extern TCHAR szChildClass[];
76
77
78
79 #ifdef __cplusplus
80 };
81 #endif
82
83 #endif // __MAIN_H__