2002-07-14 17:59:36 +00:00
|
|
|
/*
|
|
|
|
* ReactOS regedit
|
|
|
|
*
|
|
|
|
* main.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
|
|
*
|
2002-11-12 15:25:15 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2002-07-14 17:59:36 +00:00
|
|
|
*
|
2002-11-12 15:25:15 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2002-07-14 17:59:36 +00:00
|
|
|
*
|
2002-11-12 15:25:15 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2002-07-14 17:59:36 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MAIN_H__
|
|
|
|
#define __MAIN_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include "resource.h"
|
2002-07-15 20:00:02 +00:00
|
|
|
|
|
|
|
|
2002-07-16 22:18:29 +00:00
|
|
|
#define STATUS_WINDOW 2001
|
|
|
|
#define TREE_WINDOW 2002
|
|
|
|
#define LIST_WINDOW 2003
|
|
|
|
|
|
|
|
#define MAX_LOADSTRING 100
|
2002-07-20 16:29:26 +00:00
|
|
|
#define SPLIT_WIDTH 5
|
2002-07-16 22:18:29 +00:00
|
|
|
#define MAX_NAME_LEN 500
|
|
|
|
|
|
|
|
|
2002-07-20 16:29:26 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2002-07-15 20:00:02 +00:00
|
|
|
|
2002-07-20 16:29:26 +00:00
|
|
|
enum OPTION_FLAGS {
|
|
|
|
OPTIONS_AUTO_REFRESH = 0x01,
|
|
|
|
OPTIONS_READ_ONLY_MODE = 0x02,
|
|
|
|
OPTIONS_CONFIRM_ON_DELETE = 0x04,
|
|
|
|
OPTIONS_SAVE_ON_EXIT = 0x08,
|
|
|
|
OPTIONS_DISPLAY_BINARY_DATA = 0x10,
|
|
|
|
OPTIONS_VIEW_TREE_ONLY = 0x20,
|
|
|
|
OPTIONS_VIEW_DATA_ONLY = 0x40,
|
|
|
|
};
|
2002-07-15 20:00:02 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
HWND hWnd;
|
|
|
|
HWND hTreeWnd;
|
|
|
|
HWND hListWnd;
|
|
|
|
int nFocusPanel; // 0: left 1: right
|
|
|
|
int nSplitPos;
|
2002-07-20 16:29:26 +00:00
|
|
|
WINDOWPLACEMENT pos;
|
|
|
|
TCHAR szPath[MAX_PATH];
|
2002-07-15 20:00:02 +00:00
|
|
|
} ChildWnd;
|
2002-07-14 17:59:36 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Global Variables:
|
2002-07-14 20:38:52 +00:00
|
|
|
//
|
2002-07-14 17:59:36 +00:00
|
|
|
extern HINSTANCE hInst;
|
2002-07-20 16:29:26 +00:00
|
|
|
extern HWND hFrameWnd;
|
|
|
|
extern HMENU hMenuFrame;
|
|
|
|
extern HWND hStatusBar;
|
|
|
|
extern HFONT hFont;
|
|
|
|
extern enum OPTION_FLAGS Options;
|
2002-07-14 17:59:36 +00:00
|
|
|
|
|
|
|
extern TCHAR szTitle[];
|
|
|
|
extern TCHAR szFrameClass[];
|
2002-07-14 20:38:52 +00:00
|
|
|
extern TCHAR szChildClass[];
|
2002-07-14 17:59:36 +00:00
|
|
|
|
2003-02-21 14:04:55 +00:00
|
|
|
#if __MINGW32_MAJOR_VERSION < 1
|
2002-07-14 17:59:36 +00:00
|
|
|
typedef struct tagNMITEMACTIVATE{
|
|
|
|
NMHDR hdr;
|
|
|
|
int iItem;
|
|
|
|
int iSubItem;
|
|
|
|
UINT uNewState;
|
|
|
|
UINT uOldState;
|
|
|
|
UINT uChanged;
|
|
|
|
POINT ptAction;
|
|
|
|
LPARAM lParam;
|
|
|
|
UINT uKeyFlags;
|
|
|
|
} NMITEMACTIVATE, FAR *LPNMITEMACTIVATE;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // __MAIN_H__
|