2003-08-07 05:10:13 +02:00
|
|
|
/*
|
|
|
|
* Regedit definitions
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MAIN_H__
|
|
|
|
#define __MAIN_H__
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define STATUS_WINDOW 2001
|
|
|
|
#define TREE_WINDOW 2002
|
|
|
|
#define LIST_WINDOW 2003
|
|
|
|
|
2003-12-08 23:48:07 +01:00
|
|
|
#define SPLIT_WIDTH 5
|
2003-08-07 05:10:13 +02:00
|
|
|
|
2003-12-03 21:25:24 +01:00
|
|
|
#define COUNT_OF(a) (sizeof(a)/sizeof(a[0]))
|
2003-08-07 05:10:13 +02:00
|
|
|
|
2003-12-12 05:08:59 +01:00
|
|
|
extern HINSTANCE hInst;
|
|
|
|
|
2003-08-07 05:10:13 +02:00
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
enum OPTION_FLAGS {
|
2003-12-08 23:48:07 +01:00
|
|
|
OPTIONS_AUTO_REFRESH = 0x01,
|
|
|
|
OPTIONS_READ_ONLY_MODE = 0x02,
|
|
|
|
OPTIONS_CONFIRM_ON_DELETE = 0x04,
|
|
|
|
OPTIONS_SAVE_ON_EXIT = 0x08,
|
2003-08-07 05:10:13 +02:00
|
|
|
OPTIONS_DISPLAY_BINARY_DATA = 0x10,
|
|
|
|
OPTIONS_VIEW_TREE_ONLY = 0x20,
|
|
|
|
OPTIONS_VIEW_DATA_ONLY = 0x40,
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
2003-12-08 23:48:07 +01:00
|
|
|
HWND hWnd;
|
2003-08-07 05:10:13 +02:00
|
|
|
HWND hTreeWnd;
|
|
|
|
HWND hListWnd;
|
|
|
|
int nFocusPanel; /* 0: left 1: right */
|
2003-12-08 23:48:07 +01:00
|
|
|
int nSplitPos;
|
|
|
|
WINDOWPLACEMENT pos;
|
|
|
|
TCHAR szPath[MAX_PATH];
|
2003-08-07 05:10:13 +02:00
|
|
|
} ChildWnd;
|
2003-12-12 05:08:59 +01:00
|
|
|
extern ChildWnd* g_pChildWnd;
|
2003-08-07 05:10:13 +02:00
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
* Global Variables:
|
|
|
|
*/
|
|
|
|
extern HINSTANCE hInst;
|
|
|
|
extern HWND hFrameWnd;
|
|
|
|
extern HMENU hMenuFrame;
|
|
|
|
extern HWND hStatusBar;
|
|
|
|
extern HFONT hFont;
|
|
|
|
extern enum OPTION_FLAGS Options;
|
|
|
|
|
|
|
|
extern TCHAR szTitle[];
|
|
|
|
extern TCHAR szFrameClass[];
|
|
|
|
extern TCHAR szChildClass[];
|
|
|
|
|
|
|
|
/* about.c */
|
|
|
|
extern void ShowAboutBox(HWND hWnd);
|
|
|
|
|
|
|
|
/* childwnd.c */
|
|
|
|
extern LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
|
|
|
|
|
|
|
|
/* framewnd.c */
|
|
|
|
extern LRESULT CALLBACK FrameWndProc(HWND, UINT, WPARAM, LPARAM);
|
|
|
|
extern void SetupStatusBar(HWND hWnd, BOOL bResize);
|
|
|
|
extern void UpdateStatusBar(void);
|
|
|
|
|
|
|
|
/* listview.c */
|
|
|
|
extern HWND CreateListView(HWND hwndParent, int id);
|
2003-12-12 05:08:59 +01:00
|
|
|
extern BOOL RefreshListView(HWND hwndLV, HKEY hKey, LPCTSTR keyPath);
|
|
|
|
extern LPCTSTR GetValueName(HWND hwndLV);
|
2003-08-07 05:10:13 +02:00
|
|
|
|
|
|
|
/* treeview.c */
|
|
|
|
extern HWND CreateTreeView(HWND hwndParent, LPTSTR pHostName, int id);
|
|
|
|
extern BOOL OnTreeExpanding(HWND hWnd, NMTREEVIEW* pnmtv);
|
2003-12-12 05:08:59 +01:00
|
|
|
extern LPCTSTR GetItemPath(HWND hwndTV, HTREEITEM hItem, HKEY* phRootKey);
|
2003-08-07 05:10:13 +02:00
|
|
|
|
2003-12-03 21:25:24 +01:00
|
|
|
/* edit.c */
|
2003-12-12 05:08:59 +01:00
|
|
|
BOOL ModifyValue(HWND hwnd, HKEY hKey, LPCTSTR valueName);
|
2003-12-03 21:25:24 +01:00
|
|
|
|
2003-08-07 05:10:13 +02:00
|
|
|
#endif /* __MAIN_H__ */
|