2006-06-14 19:50:28 +02:00
|
|
|
/*
|
|
|
|
* OleView (main.h)
|
|
|
|
*
|
|
|
|
* Copyright 2006 Piotr Caban
|
|
|
|
*
|
|
|
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <commctrl.h>
|
|
|
|
#include <unknwn.h>
|
|
|
|
#include <wine/unicode.h>
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
#define MAX_LOAD_STRING 256
|
2006-06-14 19:51:27 +02:00
|
|
|
#define MAX_WINDOW_WIDTH 30000
|
2006-06-14 19:50:28 +02:00
|
|
|
|
|
|
|
#define STATUS_WINDOW 2000
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
HWND hMainWnd;
|
2006-06-14 19:51:27 +02:00
|
|
|
HWND hPaneWnd;
|
2006-06-14 19:50:28 +02:00
|
|
|
HWND hStatusBar;
|
|
|
|
HWND hToolBar;
|
|
|
|
HINSTANCE hMainInst;
|
|
|
|
}GLOBALS;
|
|
|
|
|
2006-06-14 19:51:27 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
HWND left;
|
|
|
|
HWND right;
|
|
|
|
INT pos;
|
|
|
|
INT size;
|
|
|
|
INT width;
|
|
|
|
INT height;
|
|
|
|
INT last;
|
|
|
|
}PANE;
|
|
|
|
|
2006-06-14 19:50:28 +02:00
|
|
|
extern GLOBALS globals;
|
2006-06-14 19:51:27 +02:00
|
|
|
|
|
|
|
/* Predefinitions: */
|
|
|
|
/* pane.c */
|
|
|
|
BOOL CreatePanedWindow(HWND hWnd, HWND *hWndCreated, HINSTANCE hInst);
|