oleview: Added more TreeView entries.
[wine/gsoc_dplay.git] / programs / oleview / main.h
blob9e3a8f7c37972d2ea6ff1516bfe2e76fec5967b9
1 /*
2 * OleView (main.h)
4 * Copyright 2006 Piotr Caban
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #define COBJMACROS
23 #include <windows.h>
24 #include <winreg.h>
25 #include <commctrl.h>
26 #include <unknwn.h>
27 #include <wine/unicode.h>
29 #include "resource.h"
31 #define MAX_LOAD_STRING 256
32 #define MAX_WINDOW_WIDTH 30000
34 #define STATUS_WINDOW 2000
35 #define TREE_WINDOW 2001
37 /*ItemInfo flags */
38 #define REGTOP 1
39 #define REGPATH 2
40 #define SHOWALL 4
41 #define INTERFACE 8
43 typedef struct
45 HWND hMainWnd;
46 HWND hPaneWnd;
47 HWND hTree;
48 HWND hStatusBar;
49 HWND hToolBar;
50 HINSTANCE hMainInst;
51 DWORD dwClsCtx;
52 }GLOBALS;
54 typedef struct
56 HWND left;
57 HWND right;
58 INT pos;
59 INT size;
60 INT width;
61 INT height;
62 INT last;
63 }PANE;
65 typedef struct
67 /* Main TreeView entries: */
68 HTREEITEM hOC; /* Object Classes */
69 HTREEITEM hGBCC; /* Grouped by Component Category */
70 HTREEITEM hO1O; /* OLE 1.0 Objects */
71 HTREEITEM hCLO; /* COM Library Objects */
72 HTREEITEM hAO; /* All Objects */
73 HTREEITEM hAID; /* Application IDs */
74 HTREEITEM hTL; /* Type Libraries */
75 HTREEITEM hI; /* Interfaces */
76 }TREE;
78 typedef struct
80 CHAR cFlag;
81 WCHAR info[MAX_LOAD_STRING];
82 WCHAR clsid[MAX_LOAD_STRING];
83 BOOL loaded;
84 IUnknown *pU;
85 }ITEM_INFO;
87 extern GLOBALS globals;
88 extern TREE tree;
90 /* Predefinitions: */
91 /* pane.c */
92 BOOL CreatePanedWindow(HWND hWnd, HWND *hWndCreated, HINSTANCE hInst);
93 void SetLeft(HWND hParent, HWND hWnd);
94 void SetRight(HWND hParent, HWND hWnd);
96 /* tree.h */
97 void EmptyTree(void);
98 HWND CreateTreeWindow(HINSTANCE hInst);