Moved the WINE notepad.

svn path=/trunk/; revision=8773
This commit is contained in:
Steven Edwards 2004-03-17 01:28:14 +00:00
parent b17d04d3a2
commit e816725be5
35 changed files with 3530 additions and 1024 deletions

View file

@ -1,9 +1,8 @@
/*
* ReactOS notepad
* Notepad (notepad.h)
*
* main.h
*
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -20,38 +19,35 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __MAIN_H__
#define __MAIN_H__
#define SIZEOF(a) sizeof(a)/sizeof((a)[0])
#ifdef __cplusplus
extern "C" {
#endif
#include "notepad_res.h"
#define MAX_STRING_LEN 255
#include "resource.h"
typedef struct
{
HANDLE hInstance;
HWND hMainWnd;
HWND hFindReplaceDlg;
HWND hEdit;
HFONT hFont; /* Font used by the edit control */
LOGFONT lfFont;
BOOL bWrapLongLines;
WCHAR szFindText[MAX_PATH];
WCHAR szFileName[MAX_PATH];
WCHAR szFileTitle[MAX_PATH];
WCHAR szFilter[2 * MAX_STRING_LEN + 100];
WCHAR szMarginTop[MAX_PATH];
WCHAR szMarginBottom[MAX_PATH];
WCHAR szMarginLeft[MAX_PATH];
WCHAR szMarginRight[MAX_PATH];
WCHAR szHeader[MAX_PATH];
WCHAR szFooter[MAX_PATH];
FINDREPLACE find;
} NOTEPAD_GLOBALS;
#define STATUS_WINDOW 2001
#define MAX_LOADSTRING 100
extern NOTEPAD_GLOBALS Globals;
////////////////////////////////////////////////////////////////////////////////
// Global Variables:
//
extern HINSTANCE hInst;
extern HWND hFrameWnd;
extern HMENU hMenuFrame;
extern HWND hStatusBar;
extern HFONT hFont;
extern TCHAR szTitle[];
extern TCHAR szFrameClass[];
extern TCHAR szChildClass[];
#ifdef __cplusplus
};
#endif
#endif // __MAIN_H__
VOID SetFileName(LPCWSTR szFileName);